Applet_InvokeMethod Event

The Applet_InvokeMethod event can start if any of the following items occur:

  • A call to applet.InvokeMethod occurs

  • A call to a specialized method occurs

  • A user chooses a menu item in a menu that the user defines

For more information, see About Specialized and Custom Methods.

This method does not return any information.

Format

Applet_InvokeMethod(name, inputPropSet)

The following table describes the arguments for the Applet_InvokeMethod event.

Argument Description

name

The name of the method that Siebel CRM calls.

inputPropSet

A property set that identifies arguments that Siebel CRM sends to the event.

Usage

This method sends information you specify in the inputPropSet argument to the PreInvokeMethod event. You can use the Applet_InvokeMethod event to display or hide controls, or to set a search specification. To access a business component from this event handler, do the following:

  • Use this.BusComp.

  • Do not use TheApplication.ActiveBusComp.

Used With

Browser Script

Examples

Some methods can create, modify, or delete records. These actions might call an event at the applet or business component level. If you require Siebel CRM to perform a specific action before or after the method run, then you can use these events. The following example includes custom code in the InvokeMethod applet event. For more information, see Applet_PreInvokeMethod Event.

function Applet_InvokeMethod(name,inputPropSet)
{
   if (name == "WriteRecord")
      theApplication.SWEAlert("Record successfully saved!");
}