|Bookshelf Home | Contents | Index | PDF|
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.
The PreWriteRecord event triggers only if a field value was modified or inserted, or when a record is deleted. When a record is deleted, PreWriteRecord is called to delete the implied join records to the initial record.
When associating a multivalue group record (based on an M:M relationship) with the business component that invokes the association, the PreWriteRecord and WriteRecord events execute. These events execute even if no fields on the base or invoking business component are updated by the association. The PreWriteRecord and WriteRecord events are executed to acknowledge the update to the intersection table.
CAUTION: Be careful when using the Raise Error and RaiseErrorText methods in BusComp_PreWriteRecord, because they cancel operations. For example, if RaiseErrorText is used in BusComp_PreWriteRecord, the user or code will not be able to step off the current record until the condition causing the RaiseErrorText method to be invoked is addressed.
if Me.GetFieldValue("Sales Stage") LIKE "07*" then
|Siebel Object Interfaces Reference||Copyright © 2008, Oracle. All rights reserved.|