IsDirtyChanged event not raised on ChildFormDialog

Author Message
 Posted 7/1/2011 5:13:44 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/6/2019 4:44:23 AM
Posts: 595, Visits: 3,784
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.

Tags:
Post #30114
Add to Twitter Add to Facebook
 Posted 7/11/2011 5:43:26 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/6/2019 4:44:23 AM
Posts: 595, Visits: 3,784
ping
Post #30144
Add to Twitter Add to Facebook
 Posted 7/11/2011 6:38:53 AM
Strategic Support Team Member

Strategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team Member

Group: StrataFrame MVPs
Last Login: 6/15/2019 1:08:46 AM
Posts: 1,920, Visits: 21,109
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.
Post #30145
Add to Twitter Add to Facebook
 Posted 7/11/2011 1:46:50 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/6/2019 4:44:23 AM
Posts: 595, Visits: 3,784
Ivan,

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

Thanks!
Post #30147
Add to Twitter Add to Facebook
 Posted 7/12/2011 12:02:11 AM
Strategic Support Team Member

Strategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team Member

Group: StrataFrame MVPs
Last Login: 6/15/2019 1:08:46 AM
Posts: 1,920, Visits: 21,109
Glad you got it working, Larry!

http://forum.strataframe.net/Skins/Classic/Images/EmotIcons/Cool.gif
Post #30149
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.