Siebel Object Interfaces Reference > Interfaces Reference > Application Events >

Application_Start


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

Syntax

Application_Start(commandline)

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

NOTE:  Siebel Business Processes invokes this event. For more information, read Siebel Business Process Designer Administration Guide.

Returns

Not applicable

Used With

Server Script

Example

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 oEmpBusComp as BusComp
   Dim sLoginName as String
   Dim sUserName as String

   sLoginName = TheApplication.LoginName
   Set oEmpBusComp = oEmpBusObj.GetBusComp("Employee")

   With oEmpBusComp
      .ActivateField("Login Name")
      .ActivateField("First Name")
      .ActivateField("Last Name")
      .ClearToQuery
      .SetSearchSpec "Login Name", sLoginName
      .ExecuteQuery

      If .FirstRecord Then
         sUserName = .GetFieldValue("First Name")
         sUserName = sUserName + " " + _
            .GetFieldValue("Last Name")
      End If
   End With

   Set oEmpBusComp = Nothing
   Set oEmpBusObj = Nothing

End Sub


 Siebel Object Interfaces Reference 
 Published: 18 June 2003