Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Events > BusComp_PreDeleteRecord EventThe PreDeleteRecord event is called before a row is deleted in the business component. The event may be used to prevent the deletion or to perform any actions in which you need access to the record that is to be deleted. SyntaxReturnsContinueOperation or CancelOperation UsageThis event is called after the user has confirmed the deletion of the record, but before the record is deleted from the database. CancelOperation stops the execution of the underlying Siebel code associated with the event. However, if there is code in the same script following CancelOperation, that code runs regardless of the CancelOperation. Used WithExampleThis Siebel VB example prevents the deletion of an account that has associated opportunities. (general) (declarations) Function BusComp_PreDeleteRecord As Integer iReturn = ContinueOperation With oBC BusComp_PreDeleteRecord = iReturn |
Siebel Object Interfaces Reference |