TheApplication Method
The theApplication method is a global method that returns a string that contains the name of an application object. This object is the root of objects in the Siebel Application Object hierarchy.
Browser Script Format
the Application()
Siebel VB Format
TheApplication
Siebel eScript Format
TheApplication()
No arguments are available.
Usage
You can use the theApplication method to determine the object reference of the Siebel application. You can then use this information to find other objects or to call a method on the application object. For example, if you use Siebel eScript to determine if you are logged in to a server database or local database, then you can use the following code:
TheApplication().InvokeMethod("GetDataSource")
Used With
Browser Script, Server Script
Examples
The following Siebel VB example returns the login name from the application object and creates the Employee business object:
Dim oEmpBusObj as BusObject
Dim sLoginName as String
sLoginName = TheApplication.LoginName
Set oEmpBusObj = TheApplication.GetBusObject("Employee")
...
Set oEmpBusObj = Nothing