Disable unsaved data message?


Author
Message
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 23, Visits: 129
This should be a quick one. When I load data into a business object, I run further calculations on a couple of fields before presenting the data. Doing this makes the data dirty and I get a prompt to save when I leave the form. Since I am only presenting this data, where's that little setting that turns off the prompt?

Thanks

____________________
Programmer/Analyst
Captain D's, LLC

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It is on the form.  Set the AutoSHowSaveChangesMessage to False.  Another option is to accept the changes on the current data table so the BO doesn't think it is dirty.

MyBO.CurrentDataTable.AcceptChanges();

Wil Cantrell
Wil Cantrell
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 23, Visits: 129
I like the second option too. Thanks again.

____________________
Programmer/Analyst
Captain D's, LLC

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