﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » EditingState not changing after save</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 23:46:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: EditingState not changing after save</title><link>http://forum.strataframe.net/FindPost31974.aspx</link><description>&lt;font color="#000000" size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;p style="margin: 0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;I have a similar issue and I’m not sure if this is a bug oris by design. When Save is called on an object one of the first things thebusiness layer checks is IsDirty and if the object is&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;not dirty bails out of the save method&amp;nbsp;returning SaveUndoResult = Success. The problem I’ve run into is that if I setthe SetDirtyOnEdit property on an object to False and subseqently call saveeither directly or indirectly (i.e. there is a parent child relationship) andthe object is not dirty I get a SaveUndoResult&amp;nbsp;= Success but the object remains in EditingState = Editing. Noramlly I would expect a successful save to reset the editingstate to idle. This issue only became apparent when I switched&amp;nbsp; to having dialogs always open in edit mode and handling the cancel and save button enabled state based on the IsDirtyChanged event.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;p style="margin: 0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I’m currently working around the issue by using ny owninherited business layer that overrides the save methods. If the object is notdirty I call AcceptChanges on the data table in case it contiains changes from aprior save (if the object was a parent or had registered foreign keys) and thencall Undo on all rows to set the editingState to idle.&lt;/font&gt;&lt;/p&gt;&lt;font color="#000000" size="3" face="Times New Roman"&gt;&lt;/font&gt;</description><pubDate>Sun, 14 Apr 2013 11:57:29 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>EditingState not changing after save</title><link>http://forum.strataframe.net/FindPost10658.aspx</link><description>I'm probably doing something wrong here, but I have a BO which is managed by a user control I've created to handle the add/edit/save/undo events for BOs...I have to capture the EditingState of the BO after a save is done so that I can toggle the buttons.&amp;nbsp; It's supposed to work much like the maintenance form toolstrip you guys created.&amp;nbsp; I can add a new one, save it, and that works fine.&amp;nbsp; But when I edit and then save, the EditingState is staying at Editing and it should be going to Idle.&amp;nbsp; I have stepped through the code and after the save occurs there are no broken rules and the save returns Success, so I would think the EditingState should also have changed to Idle.&amp;nbsp; Is there something I'm possibly not doing correctly here that could be keeping the state from changing??&amp;nbsp;</description><pubDate>Sun, 14 Apr 2013 11:57:29 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: EditingState not changing after save</title><link>http://forum.strataframe.net/FindPost10678.aspx</link><description>[quote]Is there something I'm possibly not doing correctly here that could be keeping the state from changing??&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;I guess it would depend on how the BOs are being used.&amp;nbsp; If the BOs are being translated from the parent to the child through the BOTranslations property then there are probably some other things that could play into this.&amp;nbsp; But the first thing I would do would be to create a simple test form (not user control) and just drop on a BO and your same Add/Edit/Save logic to see if you can reproduce.&amp;nbsp; If so, then can you send a simple sample so that I can take a look at your logic?&amp;nbsp; It might be faster than going back and forth over the forum a number of times :)</description><pubDate>Thu, 02 Aug 2007 09:35:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>