Creating new Profile Attribute

Published April 29, 2007 by Wim 823 views

For some applets in our application it was implemented that only a user with a certain position could create new records. To do this, I used scripting to enable/disable the invoke of the method if the user had the correct position. Since this was done with the position name hardcoded in the script, this was not the best method because the position name could change or an extra position could be added which also needed this function.

Therefor we wanted to search for position type, but there is no method in Siebel eScript to return the position type. Then a colleague remebered that there is a way to create new profile attributes which contains user info (such as the postion type we needed). After searching on Supportweb we found out that it was very easy to do this.

To create a new profile attribute, to the following:

Browse for the business component Personalization Profile and create a new field called “Position Type” (or copy the field Position) with following values:

  • Mulitvalue Link: Position
  • Dest Field: Position Type

After compiling the Business Component, you can get this profile attribute in a script with TheApplication().GetProfileAttr(”Position Type”)

Email This Post Email This Post

Filed under Configuration

Random Posts

Comments (0)

Comments RSS - Trackback - Write Comment

No comments yet

Write Comment