Thursday, June 2, 2011

Conditionally making Field Editable/Read-Only based on user Responsibilities

Requirement: Make field editable for the user with "Siebel Administrator" and read-only for the other responsibilities.

Solution:
Follow below steps to make the field read-only based on responsibilities.


Step1: Create a Calculated Field with the below expression.

IIf (InList("Siebel Administrator",GetProfileAttrAsList('Me.User Responsibilities'))='Y','N','Y')

Explanation:
GetProfileAttrAsList function returns the user responsibilities (which is MVG) in comma seperated list.More documentation on this function in siebel bookshlef can be found here

InList function has syntax as InList("<string to search>","<comma separated values>") . This function will searches for the string in Comma Separated Values.


Step2 : Use this calculated field in BC User Property to make the required field to be editable only to the siebel Administrator Responsibility.

Name: Field Read Only Field: <Field to be editable>
Value: Calculated Field Created in Step1

In the above example the field is displays as editable only for the users with "Siebel Administrator" Responsibility and read-only for user who doesn't have "Siebel Administrator" responsibility.

No comments:

Post a Comment

Siebel Open UI is released ...!!!

Hi Guys, The most awaited feature of Siebel, called Open UI is released. This new feature Open UI is available in new Siebel patch 8.1.1....