Application Methods for Browser Script

The following table describes a summary of the application methods you can use in Browser Script. It does not include object interface methods that Siebel CRM does not call directly from an application object instance. For information about methods it calls with the InvokeMethod method on the application object, see LoadObjects Method for an Application.

Method Description Format

ActiveApplet Method for an Application

Returns the name of the active applet.

var applet;

applet = theApplication().ActiveApplet();

ActiveBusComp Method for an Application

Returns the name of the business component that the active applet references.

var busComp;

busComp = theApplication().ActiveBusComp();

ActiveBusObject Method for an Application

Returns the name of the business object for the business component that the active applet references.

var busObject;

busObject = theApplication().ActiveBusObject();

ActiveViewName Method for an Application

Returns the name of the active view.

var viewName;

viewName = theApplication().ActiveViewName();

FindApplet Method for an Application

Returns the name of an applet.

var applet;

applet = theApplication().FindApplet (appletName);

GetProfileAttr Method for an Application

Returns the name of an attribute in a user profile.

var sAttr;

sAttr = theApplication().GetProfileAttr(name);

GetService Method for an Application

Locates a business service. If this business service is not already running, then Siebel CRM starts it.

var svc;;

svc = theApplication().GetService (serviceName)

InvokeMethod Method for an Application

Calls a method.

var outPs;

outPs = theApplication().InvokeMethod (methodName, methArg1, methArg2, methArgN);

Name Method for an Application

Returns the name of the Siebel application.

var appName;

appName = theApplication().Name();

NewPropertySet Method for an Application

Creates a new property set.

var PropSet;

PropSet = theApplication().NewPropertySet();

SetProfileAttr Method for an Application

Personalization uses this method to set a value for an attribute in a user profile.

theApplication().SetProfileAttr(name, value);

SWEAlert Method for an Application

Displays a modal dialog box that includes a message.

theApplication().SWEAlert(message);