Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

WebApplet_InvokeMethod Event


The InvokeMethod event is called after a specialized method on the Web applet has been executed. WebApplet_InvokeMethod triggers for Siebel-defined methods only, it does not trigger for user-defined methods.

Syntax

WebApplet_InvokeMethod(methodName)

Argument
Description

methodName

String variable or literal containing the name of the method invoked.

Returns

Not applicable

Used With

Server Script

Example

The following example is in Siebel eScript.

switch (MethodName)
{
   case "NewQuery":
      TheApplication().SetSharedGlobal("EnableButton", "N"); break;
   case "ExecuteQuery":
      TheApplication().SetSharedGlobal("EnableButton", ""); break;
   case "UndoQuery":
      TheApplication().SetSharedGlobal("EnableButton", "");
   break;
}

The following example is in Siebel VB.

Select Case MethodName
Case "NewQuery"
   TheApplication.SetSharedGlobal "EnableButton", "N"
   break
Case "ExecuteQuery"
   TheApplication.SetSharedGlobal "EnableButton", ""
   break
Case "UndoQuery"
   TheApplication.SetSharedGlobal "EnableButton", ""
   break
End Select

See Also

Applet_InvokeMethod Event
Application_InvokeMethod Event
WebApplet_PreCanInvokeMethod Event

Siebel Object Interfaces Reference