Siebel Object Interfaces Reference > Mobile/Dedicated Web Client Automation Server Quick Reference >

Application


Table 35 lists a summary of the Application Methods syntax.

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

Dim application as SiebelWebApplication
Dim busObject as SiebelBusObject
Set busObject = application.ActiveBusObject

Returns the name of the active view.

Dim application as SiebelWebApplication
Dim sView as String
sView = application.ActiveViewName

Returns the three-letter operating currency code.

Dim application as SiebelWebApplication
Dim sCur as String
sCur = Application.CurrencyCode

Enables or disables native COM error handling.

Dim application as SiebelWebApplication
Dim bEnable as Integer
Call application.EnableExceptions(bEnable as Integer)

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

Dim application as SiebelWebApplication
Dim busObject as SiebelBusObject
set busObject = application.GetBusObject(busobjName as String)

Gets the shared user-defined global variables.

Dim application as SiebelWebApplication
Dim sName as String
sName = application.GetSharedGlobal(varName as String)

Returns the last error text message.

Dim application as SiebelWebApplication
Dim sText as String
sText = application.GetLastErrText

Returns the value of an attribute in a user profile.

Dim application as SiebelWebApplication
Dim profName as String
Dim profValue as String
profValue = application.GetProfileAttr(profName as String)

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

Dim application as SiebelWebApplication
Dim oService as SiebelService
set oService = Application.GetService(serviceName as String)

Returns the shared user-defined global variables.

Dim application as SiebelWebApplication
Dim name as String
name = application.GetSharedGlobal (sName as String)

Calls the named specialized method.

Dim application as SiebelWebApplication
Dim sReturn as String
sReturn = application.InvokeMethod(methodName as String, methodArgs as String or StringArray)

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

Dim application as SiebelWebApplication
Dim sID as string
sID = application.LoginId

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

Dim application as SiebelWebApplication
Dim sUser as String
sUser = application.LoginName

Terminates the Mobile Web Client session.

Dim application as SiebelWebApplication
Dim status as Boolean
Status = application.Logoff

Constructs a new property set object.

Dim application as SiebelWebApplication
Dim propset As SiebelPropertySet
propset = application.NewPropertySet

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

Dim application as SiebelWebApplication
Dim sRow as String
sRow = application.PositionId

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

Dim application as SiebelWebApplication
Dim sPosition as String
sPosition = application.PositionName

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

Dim application as SiebelWebApplication
Dim posId as String
Dim status as Boolean
status = application.SetPositionId(posId)

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

Dim application as SiebelWebApplication
Dim posName as String
Dim status as Boolean
status = application.SetPositionName(posName)

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

Dim oApplication as SiebelWebApplication
Dim bool as Boolean
bool = oApplication.SetProfileAttr(name as String, value as String)

Sets a shared user-defined global variable.

Dim application as SiebelWebApplication
Dim bool as Boolean
bool = application.SetSharedGlobal(varName as String, value as String)

Appends a message to the trace file.

Dim application as SiebelWebApplication
application.Trace(message as String)

Turns off the tracing started by TraceOn.

Dim application as SiebelWebApplication
Dim bool as Boolean
bool = application.TraceOff

Turns tracing on.

Dim application as SiebelWebApplication
Dim bool as Boolean
bool = application.TraceOn(filename as String, type as Integer, Selection as String)


 Siebel Object Interfaces Reference 
 Published: 18 June 2003