Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Events > Application_PreInvokeMethod EventThe PreInvokeMethod event is called before a specialized method is invoked by a user-defined applet menu or by calling InvokeMethod on the application. Server Script SyntaxApplication_PreInvokeMethod(methodName) Browser Script SyntaxApplication_PreInvokeMethod (methodName, inputPropSet)
Returns"ContinueOperation" or "CancelOperation" UsageThe PreInvokeMethod event is called just before a specialized method is invoked on the application. If implementing a user-defined method, the script should return CancelOperation if you wish to handle the event entirely through your own scripting. Specialized methods are methods based on applet or business component classes other than CSSFrame and CSSBusComp, respectively, that is, specialized classes. When the method to be invoked is part of an If statement, this function's return value must be assigned before the End If statement, as in the following code fragment. If MethodName = "ResetQuery" then 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 WithExampleThe following example is in Siebel VB and shows an implementation of the PreInvokeMethod: Function Application_PreInvokeMethod (MethodName _ Dim i As Integer Case "LaunchExcel" The following is the equivalent sample in Siebel eScript. Note that for this script to run, the entire Clib.system statement must appear on a single line in the Editor: function Application_PreInvokeMethod (MethodName) var iReturn = ContinueOperation; case "LaunchExcel": See Also |
Siebel Object Interfaces Reference |