StrataFrame Forum

Undo, Redo History

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

By Tim Dol - 8/25/2008

Just wondering if anyone has implemented Undo/Redo history at the business object level. Right now we can Undo changes since the last save, however I have a requirment to keep track of all changes since the last save operation and allow users to undo them one at at time (and Redo them as well), until you save or Undo All changes.

Any idea's on how you would go about doing this?

Thanks,
Tim

By Edhy Rijo - 8/25/2008

Hi Tim,

You can use the BO methods SaveCurrentDataTableToSnapshot and RestoreCurrentDataTableSnapshot() to properly handle that situation.  Check the help file for more information, but these are the methods you need to implement this feature.

By Keith Chisarik - 8/25/2008

Edhy is right, snapshot feature rules.
By Dustin Taylor - 8/26/2008

Good call Edhy Smile

Tim, those are pretty new, so you'll need to get the most recent 1.6.6 beta to use them. Not sure if they are in the help yet, but you can find a pretty good explanation of them in this post, three replies down.