Save Changes on Exit Problem


Author
Message
Douglas Riley
Douglas Riley
StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)StrataFrame Novice (59 reputation)
Group: StrataFrame Users
Posts: 21, Visits: 267
I am having a problem with the Save Changes dialog.  The dialog box appears when attempting to close a form when I have not modified or added any records.  If I just open the form and close it, the dialog does not appear.  If I navigate to another record and attempt to close the form, the "Do You want to save changes?" dialog appears Crazy! This form has a one-to-many business object relationship (4 child business objects).  Another odd thing is if I don't preload the child bo's when the form initializes, navigate to another parent bo record and attempt to close the form, the dialog does not appear.  Am I missing a setting somewhere?  Any help would be appreciated!  Thanks!

Doug

Reply
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I've had this happen several times. Thus far it has always been something I've done Sad



The trick it to handle the IsDirtyChanged (something like that) event of the BO(s)...just put a break point there. Open the form, navigate, close it...at some point this event will fire. Look at the call stack as see were you're inadvertently causing the BO to be dirty.



Hope that helps!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search