LoginId Method for an Application
The LoginId method returns the login ID of the user who started the Siebel application.
Format
Application.LoginId
No arguments are available.
Usage
The login ID is the value of the ROW_ID column in the user login record in the S_USER table. You can use the login ID as a search specification.
Used With
COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
In this Siebel VB example in the BusComp_PreSetFieldValue event, the LoginId method determines if the user possesses the rights 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 modify Account Status " & _
"because you did not create the record.")
end if
End Select
BusComp_PreSetFieldValue = ContinueOperation
End Function