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 value of the ROW_ID column in the user's login record in the S_USER table. When 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
   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.")
         end if
   End Select
   BusComp_PreSetFieldValue = ContinueOperation
End Function

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