UndoRecord Method for a Business Component
The UndoRecord method reverses any unsaved modifications that Siebel CRM has made on a record. This includes reversing unsaved modifications to fields, and deleting an active record that is not saved to the Siebel database. This method does not return any information.
Format
BusComp.UndoRecord
No arguments are available.
Usage
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 made to field values. Use it before Siebel CRM uses the WriteRecord method to save these modifications, or before the user steps off the record.
UndoRecord reverses unsaved modifications to a record. If you require a fine degree of control over the modifications that Siebel CRM reverses, then do the following:
Place the code in one of the following events:
PreNewRecord
PreSetFieldValue
PreWriteRecord
Issue a CancelOperation to cancel the modifications that the event calls.
For more information, see Caution About Using the Cancel Operation Event Handler and NewRecord Method for a Business Component.
Used With
Browser Script, COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script