Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Customizing Siebel Object Interfaces > Customizing Object Interface Events and Extension Events > Customizing How Siebel CRM Continues an OperationThis topic describes how to customize the way Siebel CRM continues an operation. To customize how Siebel CRM continues an operation
Caution About Using the Cancel Operation Event HandlerIncluding the CancelOperation return value configures the Siebel application to cancel the remaining operations that Siebel CRM associates with the event. CAUTION: If you define a custom object interface method, then you must include the CancelOperation return value. If you do not, then Siebel CRM issues an unknown method name error. CancelOperation does not stop the code in a script that follows CancelOperation, but it does prevent Siebel CRM from running any predefined code that is associated with the method or event that is running. If you handle the method or event entirely through scripting, and if you must prevent the predefined code from executing, then the method or event must return CancelOperation. For more information, see How Siebel CRM Handles a Predefined Business Service Method. Example of Using Siebel VB to Create a ValidationThe following Siebel VB example creates a validation that queries a specific field to determine if the object interface event completed successfully or completed with a run-time error: Function BusComp_PreSetFieldValue (FieldName As String, Note the If statement in the following pseudocode: If condition is true In this If statement, Siebel CRM runs the custom code only if the condition is true:
You can also use the following alternative If statement: returnValue = ContinueOperation Note that with a PreInvokeMethod event, you use the method name to determine if the script conditionally runs. For example, consider the following code in Siebel eScript:
Example of Using Siebel eScript to Create a ValidationThe following Siebel eScript example creates a validation that queries a specific field to determine if the object interface event completed successfully or completed with a run-time error: function BusComp_PreSetFieldValue (FieldName, FieldValue) |
Siebel Object Interfaces Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |