﻿<?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 » Business Objects and Data Access (How do I?)  » has field value changed... ?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 22:29:11 GMT</lastBuildDate><ttl>20</ttl><item><title>has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22261.aspx</link><description>hi, i am overriding the onbeforesave event on a bo and i need to check that if in editing-mode, wether a value of a specific field was changed by the user or not. like:&lt;P&gt;[codesnippet]&lt;BR&gt;protected override void OnBeforeSave(MicroFour.StrataFrame.Data.BeforeSaveUndoEventArgs e)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.EditingState == BusinessEditingState.Adding)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (this.custno.hasChanged)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base.OnBeforeSave(e);&lt;BR&gt;}&lt;BR&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;any ideas ? thanks.</description><pubDate>Mon, 09 Mar 2009 08:58:35 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22271.aspx</link><description>thanks, will have a closer look :)</description><pubDate>Mon, 09 Mar 2009 08:58:35 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22270.aspx</link><description>Actually it will.&amp;nbsp; Look at this:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBO.CurrentRow(MyColumnName,Version)[/codesnippet]</description><pubDate>Mon, 09 Mar 2009 08:34:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22269.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;ok, i can use isdirty instead of editingstate.editing, but that still wouldnt tell me wether the specific field has changed. at that point all i know is that at least 1 field changed. any ideas on that ?&lt;/P&gt;&lt;P&gt;thanks.</description><pubDate>Mon, 09 Mar 2009 08:18:31 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22263.aspx</link><description>Well, you could do several things.&amp;nbsp; I would not use the editing state since this is not always going to reflect a data change.&amp;nbsp; I would use the IsDirty property or the state of the current row.&lt;/P&gt;&lt;P&gt;[codesnippet]If MyBo.IsDirty Then[/codesnippet]&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;[codesnippet]If MyBo.CurrentRow.RowState = DataRowState.Modified Then[/codesnippet]</description><pubDate>Mon, 09 Mar 2009 07:48:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: has field value changed... ?</title><link>http://forum.strataframe.net/FindPost22262.aspx</link><description>should read &lt;EM&gt;&lt;FONT color=#3333dd&gt;BusinessEditingState.Editing&lt;/FONT&gt;&lt;/EM&gt; instead of &lt;EM&gt;&lt;FONT color=#3333dd&gt;BusinessEditingState.Adding&lt;/FONT&gt;&lt;/EM&gt;</description><pubDate>Mon, 09 Mar 2009 06:24:05 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item></channel></rss>