<?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 : checkpointing with multiple forms</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : checkpointing with multiple forms</description>
  <pubDate>Mon, 20 May 2013 20:48:55 -700</pubDate>
  <lastBuildDate>Thu, 09 Oct 2008 16:05:44 -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=955</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>checkpointing with multiple forms : But I already did that in Form...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3485#3485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 09-Oct-2008 at 4:05pm<br /><br />But I already did that <b><font color="#ff0000">in FormB</font></b>:<br><br>FormAPersMgr.ImportEntities(mModifiedEntityList, MergeStrategy.OverwriteChanges)<br>FormAPersMgr.ImportEntities(mAddedEntityList, MergeStrategy.OverwriteChanges)<br><br>When I do this, I can see that FormA's PM has all the changes I made in FormB.<br><br>But, in FormA, the controls bound to a bindingsource whose datasource is an entitylist populated by FormAPersMgr, aren't automatically refreshed.<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 16:05:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3485#3485</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : or you can use ImportEntities....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3483#3483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 09-Oct-2008 at 10:24am<br /><br />or you can use ImportEntities.]]>
   </description>
   <pubDate>Thu, 09 Oct 2008 10:24:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3483#3483</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : So, is it just a matter of calling...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3481#3481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 08-Oct-2008 at 11:17am<br /><br />So, is it just a matter of calling the GetEntities() method from FormA's PM?<br><br>mCustomers.ReplaceRange(FormAPersMgr.GetEntities(Of Customer)())<br>]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 11:17:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3481#3481</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : You are correct. It is not automatic....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3480#3480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 08-Oct-2008 at 10:55am<br /><br />You are correct.&nbsp; It is not automatic.&nbsp; Furthermore, not all users want it to be automatic.&nbsp; Many users do not want their forms being modified by other PM's.&nbsp; As a developer, you get to decide how you want your separate PM's tp interact with each other.]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 10:55:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3480#3480</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : I think I found out why.I actually...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3477#3477</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 08-Oct-2008 at 9:00am<br /><br />I think I found out why.<br><br>I actually misstated by saying that FormA's PM does not have the changes I made in FormB.&nbsp; In fact, it does have all the changes I made in FormB.&nbsp; However, the controls in FormA that are bound to the bindingsource object populated by FormA's PM do not automatically reflect changed data.&nbsp; For instance, I added a new customer record in FormB, above statements are executed resulting in FormA's PM now having the newly added customer record.&nbsp; I check the grid control on FormA but do not see the newly added customer record.&nbsp; Do I need to do something to refresh data in FormA?&nbsp; When I was using a shared PM before, this did not used to be an issue.&nbsp; In other words, data was auto refreshed.<br>]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 09:00:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3477#3477</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : I actually saw this post but wasn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3474#3474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 07-Oct-2008 at 8:05pm<br /><br />I actually saw this post but wasn't quite sure how to use the pm.importentities() method to "refresh" anything.<br><br>I have two forms, let's call it FormA and FormB.&nbsp; Each form is using its own instance of the PM.<br><br>In FormA, I have a grid control that displays the customer listing.<br><br>In FormB, I followed the steps suggested in the post (<a href="forum_posts.asp?TID=234" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=234</a>) in order to sync up data between the two PMs.&nbsp; My "import entities" code looks something like below:<br><br>FormAPersMgr.ImportEntities(mModifiedEntityList, MergeStrategy.OverwriteChanges)<br>FormAPersMgr.ImportEntities(mAddedEntityList, MergeStrategy.OverwriteChanges)<br><br>mModifiedEntityList contains modified entities while mAddedEntityList contains added entities that I saved in the PM's Saving event.<br><br>Now, after I execute the above two statements, I would expect FormA's PM to have the changes I made in FormB.&nbsp; However, it doesn't.<br><br>What am I doing wrong?<br><br>]]>
   </description>
   <pubDate>Tue, 07 Oct 2008 20:05:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3474#3474</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : Read this post:  http://www....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3470#3470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 07-Oct-2008 at 8:38am<br /><br />Read this post:<DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=234" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=234</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 07 Oct 2008 08:38:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3470#3470</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : OK, I can use multiple PMs. How...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3464#3464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 04-Oct-2008 at 9:25pm<br /><br />OK, I can use multiple PMs.&nbsp; How do I merge changes saved by different PMs?&nbsp; Is there a quick and efficient way to do it? <br>]]>
   </description>
   <pubDate>Sat, 04 Oct 2008 21:25:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3464#3464</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : If you want rollback-by-form with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3458#3458</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 02-Oct-2008 at 2:55pm<br /><br /><DIV>If you want rollback-by-form with the ability to have multiple forms open with unsaved changes, then multiple PMs is the only way to get it.</DIV><DIV>&nbsp;</DIV><DIV>Greg Dunn</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 02 Oct 2008 14:55:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3458#3458</guid>
  </item> 
  <item>
   <title>checkpointing with multiple forms : Hi, I am using a single instance...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3450#3450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=360" rel="nofollow">yongbum75</a><br /><strong>Subject:</strong> 955<br /><strong>Posted:</strong> 29-Sep-2008 at 8:43pm<br /><br />Hi, I am using a single instance of PersistenceManager throughout my MDI Windows app. <br><br>1. User opens Customer List form. <br>2. BeginCheckPoint() is called in the constructor.<br>3. User makes changes to a customer.<br>4. Without closing Customer form, user then opens Order List form.<br>5. BeginCheckPoint() is called in the constructor.<br>6. User makes changes to an order.<br>7. User decides to go back to Customer List form then cancels changes and closes the form at which point RollbackCheckPoint() is called.<br><br>It looks like the RollbackCheckPoint() call rolls back changes made to the order at step 6 not the customer.<br><br>I think I understand why this happens but I wonder if there is any way to achieve what I am trying to achieve that is to roll back changes made to the customer at step 3.&nbsp; Is there any way to do that without using more than one instance of PersistenceManager?<br><br>Thanks for your help in advance.<br>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 20:43:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=955&amp;PID=3450#3450</guid>
  </item> 
 </channel>
</rss>