UndoRecord Method
The UndoRecord method reverses any unsaved modifications that the user makes on a record. This includes reversing unsaved modifications to fields, and deleting an active record that is not saved. It returns one of the following values:
true. UndoRecord successfully deleted the record.
false. UndoRecord did not successfully delete the record.
It uses the following syntax:
BusComp.UndoRecord();
It includes no arguments.
For example:
SiebelApp.S_App.FindApplet(appletName).BusComp().UndoRecord();
You can use the UndoRecord method in the following ways:
To delete a new record. Use it after Siebel CRM calls the NewRecord method and before it saves the new record to the Siebel database.
To reverse modifications that the user makes to field values. Use it before Siebel CRM uses the WriteRecord method to save these changes, or before the user steps off the record.