DefaultFocus
Jul/073
Since my knowledge of Siebel is far from complete, I’m still learning new stuff every day. Yesterday I was working on a little requirement that said that the tab order on the Service Request applet should have a logical order. So I set the tab layout and when I tested it, everything was ok, but when I wanted to create a new Service Request, the cursor automatically showed up in the Contact field instead of the Contract field which was tab n° 1.
After looking in supportweb and asking my colleagues for advice I stumbled upon the DefaultFocus_New Applet User Property where you can specify the field that should have the focus on creating a new record.
Who know’s how much time I would have spent looking to solve this problem if I didn’t found this user property.
Creating new Profile Attribute
Apr/071
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”)