StrataFrame Forum

Disable unsaved data message?

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

By Wil Cantrell - 2/1/2007

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

By Trent L. Taylor - 2/1/2007

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();
By Wil Cantrell - 2/1/2007

I like the second option too. Thanks again.