StrataFrame Forum

IsDirtyChanged event not raised on ChildFormDialog

http://forum.strataframe.net/Topic30114.aspx

By Larry Caylor - 7/1/2011

I have a business object on a parent form that is configured SetDirtyOnEdit = False. It is also configured to raise the FieldPropertyChanged event. This object is placed in Edit mode on the parent form and a childformdialog is called. When the fields are edited on the childdialog the IsDirtyChanged event is never raised, but the FieldPropertyChanged is and the IsDirty property on the BO is updated. I can't figure out why the IsDirtyChanged event is not being raised. I'm using SF 1.7.3.4.
By Larry Caylor - 7/11/2011

ping
By Ivan George Borges - 7/11/2011

Hi Larry.

The event will always be raised on the BO and depends on when and how you are trying to do it on a form.  First, please make sure you are trying to do this through a form instead of a BO.  Second, does the IsDirtyChanged of the BO get raised?  This is something core to everything that the development team has been doing, so they are confident that it is reliable…unless, you are relying on the form property on a child dialog that was called funny, then you may need to re-attach the handlers of the BO.

Hope it helps.
By Larry Caylor - 7/11/2011

Ivan,

Re-adding the event handler to the object passed from the parent form did the trick.

Thanks!
By Ivan George Borges - 7/12/2011

Glad you got it working, Larry!

http://forum.strataframe.net/Skins/Classic/Images/EmotIcons/Cool.gif