Kavitha Devarajan a reader of Siebel Unleashed shared a really useful tip with us. She has provided information about a user property called DefaultFocus.
Requirement:
Whenever I query for a record focus should be on the third column of the Contact List Applet (e.g. Last Name)
Problem:
Whenever we query on an Applet, focus is always on the first column of the list applet.
Solution:
To achieve the above requirement we can use DefaultFocus User Property. Here are steps you need to follow
- Go to Contact List Applet
- Click on Applet User Property Object
- Click New Record
- Enter the following information
Name: DefaultFocus_Query
Value: Last Name
User Property Details:
This user property can be used to set focus on different fields in different mode. As you must have seen in the above example we use DefaultFocus_Query which means that when we query then it will take effect. Other possible values for this user property can be
DefaultFocus_Query: Will set focus on specified field when user tries to query on that applet
DefaultFocus_New: Will set focus on specified field when user creates a new record
DefaultFocus_Edit: Will set focus on specified field when user tries to edit record
Note: You need to specify control name as value of this property. Usually Field Name and Control Name are same so it doesn’t matter but if they are different then you should specify control name.


(10 votes, average: 4.50 out of 5)





Hi Kavitha,
Its nice and good to know this!! Thank you!!
thanks,
-Rengarajan
Hi kavitha it is very nice and good one. Thanks
Hi :
Which of Applet classes are supproted those user properties ?
thx and best regards.
ivan
CSSSWEFrame
Nice to know this tip…
Hi,
Thanks a lot Kavitha for sharing this. Can we configure this property in such a way that the focus should be on the control on which the query is run?
Thanks and regards,
Bhargav Kodali
Hi All,
Nice to see this information given by Kavitha.
I also wanted to add one more info on this occasion. I have a defect raised saying that default focus was going to a particular field(for eg. 5th control, Org Name) when querying. The focus should be defaulted to 1st Control(Name).
For resolving this, I used this user-propery – DefaultFocus_Query, it didnt work. Infact, it didnt work for New and Edit also, using the userproperties – DefaultFocus_Edit and DefaultFocus_New. In all the cases the control moved to the Org Name.
Guess what the silly issue was – the Control Org Name was placed a little up above other controls in the top row in the layout of the Applet. After placing all the controls at the same level, the issue got resolved.
Though its a simple issue it took a whole day to resolve this..
Thanks
Satish.
Hi Kavitha!
I have a similar problem relating to views n applets. My view has two applets. When the view loads, the focus is on second applet rather than the first one. Please help me solve this.
Thanks
Siebelian
Nice one thanks a lot
It's nice :