on 12-10-2007 12:05 PM
Dear All!
There is a "dropdownbykey" UI element. It has many
values. One of these values should be defaulted.
That means if the screen is being showed it must be not remain
empty but with a default value in it.
How can it be made ? I have never did it ever before.
regards
sas
Hi Sas,
Say the node of the attribute that is bound to <u>dropdownbykey</u> is dropDown.
use this this code in wdDoInit();
if(wdContext.nodeDropDown().size()>0)
{
wdContext.nodeDropDown().setLeadSelection(0);
wdContext.currentDropDownElement().set<attributename>("firstkey");
}
regards,
Siva
Message was edited by:
Siva Rama Krushna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To remove the first lin e empty, The node bound to the dropdown by key has the Selection property value 1..1
Regards,
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
For this you need to set the atttibute with which it is mapped to the default key value.
wdContext.currentContextElement().setDropDown("TEST");
where TEST is the value of the simpleType of the attribute DropDown which is mapped to your dropDownByKey
Put it in your wdDoInit()
thanks & regards,
Manoj
Message was edited by:
Manoj
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.