Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

UndoRecord


UndoRecord reverses any changes made to the record that are not committed. This includes reversing uncommitted modifications to fields, as well as deleting an active record that has not yet been committed to the database.

Syntax

oBusComp.UndoRecord

Argument
Description
Not applicable
 

Returns

Not applicable

Usage

If you are using UndoRecord to delete a new record, it is useful only after NewRecord has been called and before the new record has been committed. If you are using UndoRecord to reverse changes made to field values, it is useful only before the changes have been committed through a call to WriteRecord, or before the user has stepped off the record through the user interface. UndoRecord reverses uncommitted changes to a record. Therefore, if you wish to have a fine degree of control over which changes are reversed, place the code in the PreNewRecord, PreSetFieldValue, or PreWriteRecord event, and issue a CancelOperation to cancel the change invoked by the particular event.

Used With

Server Script, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean, CORBA Object Manager

See Also

NewRecord


 Siebel Object Interfaces Reference 
 Published: 18 June 2003