﻿<?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  » BO IsDirty Property</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 09:37:58 GMT</lastBuildDate><ttl>20</ttl><item><title>BO IsDirty Property</title><link>http://forum.strataframe.net/FindPost1369.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;It appears that when a row is placed in editing state using a standard SF maintenance window the row’s IsDirty property is set to true even if no fields are modified. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;I’m using the primary BO on the form only to retrieve another BO that I wish to edit. I’m not making any changes to the primary BO. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;To get around the issue of having the framework prompt me with a “do you wish to save…” message I’m using the primary BO’s BeforeSave event to do an Undo on the primary BO’s current row. This allows the “save message” to be automatically be displayed for the other object but not the primary.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;It would seem that the row shouldn’t be set dirty if no fields were modified. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Is this by design or is it a bug?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;</description><pubDate>Mon, 05 Jun 2006 13:00:03 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BO IsDirty Property</title><link>http://forum.strataframe.net/FindPost1393.aspx</link><description>Thanks! I like it:)&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Mon, 05 Jun 2006 13:00:03 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: BO IsDirty Property</title><link>http://forum.strataframe.net/FindPost1388.aspx</link><description>I added a SetDirtyOnEdit Boolean property to BusinessLayer that defaults to False.  It functions just like the method implies: If it's True, then the record is set to dirty when Edit() is called; if it's set to False, the record is not set to dirty when Edit() is called, but rather waits until some data has changed.&lt;br&gt;
&lt;br&gt;
It will be available in the next release.</description><pubDate>Mon, 05 Jun 2006 10:50:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: BO IsDirty Property</title><link>http://forum.strataframe.net/FindPost1378.aspx</link><description>That functionality is by design, actually.&amp;nbsp; When you call edit on the business object, the current DataRow is automatically set to Modified.&amp;nbsp; The reason for this is that the business rules are never checked unless the record is in a modified state.&amp;nbsp; So, to force the business rules check when a record is edited, it first had to be set to modifed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I'll look into some other ways for you to get around that functionality.</description><pubDate>Sun, 04 Jun 2006 21:08:33 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>