Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undo vs. Revert
Message
 
To
22/01/2008 16:20:30
Frank Dolinar
Mi House of Representatives
Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01284266
Message ID:
01286441
Views:
15
Frank,

>The mmButtonCancel will apparently undo any changes made to any tab (page) on a form if the button is clicked before the data is saved. Is there a mechanism built into the framework to revert data that has been committed to the database to its state just before the commit? I recognize this would require retaining the state of the data from the form at the time it was populated. Just wondering whether the framework supports such action.
> Thanks for any help.

Actually, the Cancel button is the first object in a chain-of-responsibility design pattern. At the end of the chain is a business object that receives the call to Cancel() . So, to answer your question, yes...you can cll Cancel() on a business object at any poin and it will cancel any pending changes.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform