Group: Forum Members
Posts: 72,
Visits: 235
|
I've been trying to figure out the different behaviors between these two methods. If I want to cancel changes, which one should I call?
What I have is an edit form that has a cancel button to return the user to a detailed information or listing page. Should they change their mind and not want to add a new record to the business object or edit one of the records, they can click Cancel. This fires off the click event for the button and before I send them back to the detail/listing, I need to reset the EditingState to Idle. Does BusinessObject.Undo() take care of that? Or should I be using BusinessObject.RejectChanges() instead -- just in case they changed some values in a bound field?
I didn't find anything in the documentation about the use of these two methods (again). Some more information would really help.
|