Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

LoginId


The LoginId method returns the login ID of the user who started the Siebel application.

Syntax

Application.LoginId

Argument
Description
Not applicable
 

Returns

A string containing the login ID

Usage

The login ID is the row ID of the user's login in the Employee table. Once obtained, the login ID can be conveniently used as a search specification.

Used With

COM Data Control, COM Data Server, CORBA Object Manager (implemented as an attribute), Java Data Bean, Mobile/Dedicated Web Client Automation Server, Server Script

Example

In this Siebel VB example of BusComp_PreSetFieldValue, the LoginId method is used to determine whether the user has the right to modify a record.

Function BusComp_PreSetFieldValue (FieldName As String,
         FieldValue As String) As Integer
   Dim iReturn as integer
   iReturn = ContinueOperation
   Select Case FieldName
      Case "Account Status"
         if Me.GetFieldValue("Created By") <> _
            TheApplication.LoginId then
            TheApplication.RaiseErrorText("*** You cannot change Account Status _
               because you did not create the record***")
            iReturn = CancelOperation
         end if
   End Select
   BusComp_PreSetFieldValue = iReturn
End Function


 Siebel Object Interfaces Reference 
 Published: 18 June 2003