Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

WebApplet_PreInvokeMethod


The PreInvokeMethod event is called before a specialized method for the Web applet is invoked or a user-defined method is invoked through oWebApplet.InvokeMethod.

Syntax

WebApplet_PreInvokeMethod(methodName)

Argument
Description
methodName
String variable or literal containing the name of the method invoked

Returns

"ContinueOperation" or "CancelOperation"

Usage

The PreInvokeMethod event is called just before a specialized method is invoked on the Web applet. If implementing a new method (not defined by the built-in functions), the script should return CancelOperation to avoid invoking an "Unknown Method Name" error.

CancelOperation does not stop the execution of the code following it, but it does prevent the execution of any built-in code associated with this event. WebApplet_PreInvokeMethod should return CancelOperation when you are handling the event entirely through scripting and you don't want the built-in code to execute. However, if there is code in the same script following CancelOperation, that code runs regardless of the CancelOperation.

Used With

Server Script


 Siebel Object Interfaces Reference 
 Published: 18 June 2003