Siebel Object Interfaces Reference > Siebel eScript Quick Reference >

Application


Table 80 lists a summary of the Application Methods syntax.

Table 80.  Application Methods Syntax Summary
Method
Description
Syntax
Returns the business object for the business component for the active applet.

var busObject;
busObject = TheApplication().ActiveBusObject();

Returns the name of the active view.

var sView;
sView = TheApplication().ActiveViewName();

Returns the three-letter operating currency code.

var sCur;
sCur = TheApplication().CurrencyCode();

Instantiates and returns a new instance of the business object specified in the argument.

var myBusObject;
myBusObject = TheApplication().GetBusObject(BusObject);

Returns the value of an attribute in a user profile.

var sAttr;
sAttr = TheApplication().GetProfileAttr(name);

Instantiates and returns a new instance of the service specified in the argument.

var Service;
Service = TheApplication().GetService(serviceName);

Gets the shared user-defined global variables.

var sName;
sName = TheApplication().GetSharedGlobal(varName);

Activates the named view and its business object.

TheApplication().GotoView(viewName,[ BusinessObjectName]);

Calls the named specialized method.

var sReturn;
sReturn = TheApplication().InvokeMethod(methodName, methodArg1, methodArg2,..., methodArgn);

Returns the login ID of the user who started the Siebel application.

var sID;
sID = TheApplication().LoginId();

Returns the login name of the user who started the Siebel application.

var sUser;
sUser = TheApplication().LoginName();

Constructs and returns a new property set object.

var oPropSet;
oPropSet = TheApplication().NewPropertySet();

Returns the position ID that describes the user's current position.

var sRow;
sRow = TheApplication().PositionId();

Returns the position name of the user's current position.

var sPosition;
sPosition = TheApplication().PositionName();

Raises a scripting error message to the browser. The error code is a canonical number.

var keyVal;
var param1;
TheApplication().RaiseError(keyVal, param1, ...)

Raises a scripting error message to the browser. The error text is the specified literal string.

var message;
TheApplication().RaiseErrorText(message);

Sets the active position to the position ID specified in the argument.

TheApplication().SetPositionId(posId);

Sets the active position to the position name specified in the argument. Returns a Boolean value indicating whether or not method succeeded.

TheApplication().SetPositionName(posName);

Used in personalization to assign values to attributes in a user profile.

TheApplication().SetProfileAttr(name, value);

Sets a shared user-defined global variable.

TheApplication().SetSharedGlobal(varName, value);

Appends a message to the trace file.

TheApplication().Trace(message);

Turns off the tracing started by TraceOn.

TheApplication().TraceOff();

Turns tracing on.

TheApplication().TraceOn(filename, type, selection);

Table 81 lists a summary of the Application Events syntax.

Table 81.  Application Events Syntax Summary
Event
Description
Syntax
Called before the application exits.

Application_Close();

Called after a specialized method is invoked.

Application_InvokeMethod(methodName);

Called after the client has navigated to a view.

Application_Navigate()

Called before a specialized method is invoked.

Application_PreInvokeMethod(methodName);

Called before the client has navigated from one view to the next.

Application_PreNavigate (DestViewName, DestBusObjName)

Called when the client starts.

Application_Start(commandLine);


 Siebel Object Interfaces Reference 
 Published: 18 June 2003