Siebel Object Interfaces Reference > Interfaces Reference > Application Events >

Application_Start Event

The Start event is called when the client starts and again when the user interface is first displayed.





Text of the command line with which the Siebel application was started.

NOTE:  Siebel Business Processes invoke this event. For more information, read Siebel Business Process Framework: Workflow Guide.


Not applicable

Used With

Server Script


This Siebel VB code should be placed in the Application_Start procedure for the application of your choice. This example retrieves the first and last name of the user logging into the Siebel application:

Sub Application_Start(CommandLine As String)
Dim oEmpBusObj as BusObject
Dim oEmpBusComp as BusComp
Dim oEmpBusComp as BusComp Dim sLoginName as String
Dim sUserName as String

sLoginName = TheApplication.LoginName
Set oEmpBusObj = TheApplication.GetBusObject("Employee")
Set oEmpBusComp = oEmpBusObj.GetBusComp("Employee")
With oEmpBusComp
   .ActivateField "First Name"
   .ActivateField "Last Name"
   .SetSearchSpec "Login Name", sLoginName
   If (.FirstRecord = 1) Then
      sUserName = .GetFieldValue("First Name")
      sUserName = sUserName + " " + .GetFieldValue("Last Name")
   End If
End With

Set oEmpBusComp = Nothing
Set oEmpBusObj = Nothing
End Sub

CAUTION:  Do not use the RaiseErrorText() method in the Application_Start event. That method does not work in this event, and can cause the Application Object Manager to abort.

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.