Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

PositionName


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

Syntax

Application.PositionName

Argument
Description
Not applicable
 

Returns

A string containing the user's position

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

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
Dim iReturn As Integer
iReturn = ContinueOperation

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 ((PosName="Manager") OR (PosName="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.")
         iReturn = CancelOperation
         End If
   BusComp_PreSetFieldValue = iReturn
End Select

End Function


 Siebel Object Interfaces Reference 
 Published: 18 June 2003