<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Few questions</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Few questions</description>
  <pubDate>Wed, 15 Apr 2026 22:47:45 -700</pubDate>
  <lastBuildDate>Thu, 23 Aug 2007 17:26:14 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=380</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Few questions : 1) Composite primary keys are...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=380&amp;PID=971#971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 380<br /><strong>Posted:</strong> 23-Aug-2007 at 5:26pm<br /><br />1) Composite primary keys are allowed within DevForce<DIV>&nbsp;</DIV><DIV>2) There are a couple options here.&nbsp; </DIV><UL><LI>The best way to handle this might be to use a database insert trigger to set the real serial number during save.&nbsp; DevForce by default will re-query saved data and merge it back into cache.</LI><LI>If you don't want to use a trigger, another option is&nbsp;to listen for the PersistenceManager.EntitySavingEvent, and in the handler set the real serial number on the entities passed.&nbsp; This event is fired on the client before the actual save logic kicks in, and is not part of a transactional save.</LI><LI>On the server, the only interception point currently available is in the Entity.SaveSecurityCheck, which when implemented is called for each entity to be saved.&nbsp; You can set the real serial number here, but note that this method is called before the save transaction begins.</LI><LI>Finally, there's really nothing in the IIdGenerator that knows whether primary keys are being used, so it's potentially doable to use a custom IdGenerator for this, although this would be an undocumented and unsupported use of the IdGenerator.&nbsp; Id fixup (mapping of temporary to real ids) occurs on the server, before the save transaction begins</LI></UL><P>3) Our standard column binder for the combo box doesn't support adding new items, but we do have a sample which shows how to build a custom binder.&nbsp; Email <a href="mailto:support@ideablade.com" target="_blank">support@ideablade.com</A> directly to have this sample sent to you.</P>]]>
   </description>
   <pubDate>Thu, 23 Aug 2007 17:26:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=380&amp;PID=971#971</guid>
  </item> 
  <item>
   <title>Few questions : Hi, I am new to devforce and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=380&amp;PID=967#967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=125" rel="nofollow">mymoosani</a><br /><strong>Subject:</strong> 380<br /><strong>Posted:</strong> 22-Aug-2007 at 1:26pm<br /><br /><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial>Hi,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial>I am new to devforce and learning thru tutorials. While reading I have following questions in mind. <o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial>i- What is the solution for composite primary keys How these are handled in DevForce<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><o:p><FONT face=Arial size=2>ii</FONT></o:p><FONT size=2><FONT face=Arial>- Suppose If I have a Table for multiple kind of activities and I want to keep a serial for each activity. This is other than primary key.<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>what we do previously is to get a temporary serial number per activity type, so user should know and mark his document, but on save it may get different<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>number if another user on network utilize that number. how that kind of scenario <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>is handled in devforce. As I read, it generates the primary key automatically. Is there any way to generate another key at the time of save.<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial>iii- Suppose I need the functionality of Add thru Combo eg: IdeabladeTutoria Database &gt; Managers: I need combo of Manager on Employee form like<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>&lt;&lt;AddNew&gt;&gt;<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>------------------------<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>DAVOLIO, Nancy<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>FULLER, Andy<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><o:p><FONT face=Arial size=2>&nbsp;</FONT></o:p></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>at the same time I want the functionality of Null Entity, if Manager is not selected, it should show (Not Provided)....<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>this means that in mManagers Binding source, I should have three Null Entity..... if yes then How do I put their captions <o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><FONT size=2><FONT face=Arial><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>and how I will identify which one is selected to purform appropriate action....<o:p></o:p></FONT></FONT></P><P =capti&#111;n-figure style="MARGIN: 6pt 0in"><o:p><FONT face=Arial size=2>&nbsp;</FONT></o:p></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 22 Aug 2007 13:26:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=380&amp;PID=967#967</guid>
  </item> 
 </channel>
</rss>