StrataFrame Forum

Undo issue

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

By Ian Johnston - 3/26/2012

I have a maintainence form where the undo is undoing but not saving. The save button is active and when closing the form or navigating the records it ask to save. Where should I look?
By Edhy Rijo - 3/26/2012

Hi Ian,
This could be tricky.  At some point your BO is Dirty and when trying to move out of the current record, you are ask to save it.  If you are using more than one BO in your form, make sure all of them are part of the form's Undo action which by default will only cover the PrimaryBusinessObject, if that is not the case, please post any code you may be using for either Save or Undo, or better yet post a small sample showing the issue.
By Fabian R Silva, - - 3/27/2012

Hello Ian, When you're undoing you do something more? call edit? Have  a user control? custom properties on BO? 

All of that stuff is important, as Edhy Rijo says, BO is dirty and the best can be to debug the change of the diry property on the BO, something is changing that and will give you why this is happening.