Siebel Object Interfaces Reference > Interfaces Reference > Miscellaneous Methods >

TheApplication


TheApplication is a global method that returns the unique object of type Application. This is the root of objects within the Siebel Applications object hierarchy. Use this method to determine the object reference of the application, which is later used to find other objects or to invoke methods on the application object.

Browser Script Syntax

theApplication()

VB Syntax

theApplication

eScript Syntax

TheApplication()

Argument
Description
Not applicable
 

Returns

Application, an object for use in finding other objects or invoking methods

Usage

For convenience, the Siebel applications provide the shortcut constant theApplication.

To determine if you are logged in to a server database or local database, use TheApplication.invokemethod("GetDataSource").

Used With

Browser Script, Server Script

Example

Here is an example in VB Script to retrieve the login name from the application object and create the Employee business object:

Dim oEmpBusObj as BusObject
Dim sLoginName as String

sLoginName = theApplication.LoginName
Set oEmpBusObj = theApplication.GetBusObject("Employee")

Set oEmpBusObj = Nothing


 Siebel Object Interfaces Reference 
 Published: 18 June 2003