Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

LoginId Method


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, Java Data Bean, Mobile Web Client Automation Server, Server Script

Example

In this Siebel VB example of the BusComp_PreSetFieldValue event, 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