Siebel Object Interfaces Reference > COM Data Control Quick Reference >

Application


Table 25 lists a summary of the Application Methods syntax.

Table 25.  Application Methods Syntax Summary
Method
Description
Syntax
Allows an external application to reconnect to an existing Siebel session.

Dim application as SiebelDataControl
Dim status as Boolean
status = applicaton.Attach(sessionID As String)

Returns the three-letter operating currency code.

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

Returns a string containing the Siebel session ID.

Dim application as SiebelDataControl
Dim sessionId as String
sessionId = applicaton.Detach()

Enables/disables native COM error handling.

Dim application as SiebelApplication
Dim bEnable as Boolean
bEnable = application.EnableExceptions(bEnable)

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

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

Returns the last error code.

Dim application as SiebelApplication
Dim iErr as Integer
iErr = GetLastErrCode

Returns the last error text message.

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

Returns the value of an attribute in a user profile.

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

Dim oApplication as SiebelApplication
Dim oService as SiebelService
set Service = Application.GetService(serviceName as String)

Returns the shared user-defined global variables.

 

Calls the named specialized method.

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

Allows external applications to log in to the COM Data Server.

Dim application as SiebelApplication
Dim sErr as String
sErr = application.Login(connectString as String, userName as String, password as String)

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

Dim application as SiebelApplication
Dim sID as String
sID = application.LoginId

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

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

Disconnects the client from the server.

Dim application as SiebelApplication
Dim SiebApp as SiebelDataControl
boolVal=siebApp.LogOff()

Constructs and returns a new property set object.

Dim application as SiebelApplication
Dim PropSet as ProperySet
PropSet = oApplication.NewPropertySet()

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

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

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

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

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

Dim application as SiebelDataControl
Dim status as Boolean
status = application.SetPositionId(sPosId)

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

Dim application as SiebelDataControl
Dim status as Boolean
status = application.SetPositionName(sPosName)

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

Dim application as SiebelApplication
application.SetProfileAttr(name as String, value as String)

Sets a shared user-defined global variable, which may be accessed using GetSharedGlobal.

Dim application as SiebelApplication
Dim SiebApp as SiebelDataControl
boolVal=SetSharedGlobal(varName As String, value As String)

Appends a message to the trace file.

Dim application as SiebelApplication
Dim SiebApp as SiebelDataControl
boolVal=siebApp.TraceOn(msg As String) As Boolean

Turns off the tracing started by the TraceOn method.

Dim application as SiebelApplication
Dim SiebApp as SiebelDataControl
boolVal=siebApp.TraceOff as Boolean

Turns on the tracking of allocations and deallocations of Siebel objects, and SQL statements generated by the Siebel application.

Dim application as SiebelApplication
Dim SiebApp as SiebelDataControl
boolVal=siebApp.TraceOn(fileName As String, category As String, src As String) As Boolean


 Siebel Object Interfaces Reference 
 Published: 18 June 2003