Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Applet Events > WebApplet_PreInvokeMethod EventThe PreInvokeMethod event is called before a specialized method for the Web applet is invoked or a user-defined method is invoked through oWebApplet.InvokeMethod. SyntaxWebApplet_PreInvokeMethod(methodName) Returns"ContinueOperation" or "CancelOperation" UsageThe 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 do not 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 WithExampleThe following example is in Siebel eScript: function WebApplet_PreInvokeMethod (MethodName) The following example is in Siebel VB: Function WebApplet_PreInvokeMethod (MethodName As String) As Integer |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |