Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

PositionName Method

The PositionName property returns the position name of the user's current position. This is set by default when the Siebel application is started.




Not applicable



A string containing the user's position

Used With

COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script


This Siebel VB example checks for the position of a user changing the sales stage, and prevents changes if the user is not of the appropriate position.

Function BusComp_PreSetFieldValue (FieldName As String, FieldValue As String) As Integer

Dim sPosName As String sMsgText As String
Select Case FieldName
   Case "Sales Stage"
      If FieldValue = "Approved" Then
         ' Do not allow the sales cycle to be changed to
         ' this value if the User is not a manager or VP.
         sPosName = TheApplication.PositionName
         If NOT ((sPosName="Manager") OR (sPosName="VP"))Then
            TheApplication.RaiseErrorText("Only a Manager or Vice President can
            approve a Pipeline Item. Please notify your Manager that you _
            want to have this Pipeline Item approved.")
         End If
   BusComp_PreSetFieldValue = ContinueOperation
End Select

End Function

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