on 11-21-2007 5:30 AM
I have a drop down(by Key), and want a specific value from the dropdown values to be selected when the page is loaded.
Please help
Hi,
You can write the following line of code in wdDoInit()
wdContext.currentContextElement().setDropDown("TEST");
where DropDown is the value attr mapped to the dropDown UI element and
TEST is the key value of the element which you want to display.
This will solve your problem.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi suresh.
Try this sample coding..
String Sample = null;
IWDAttributeInfo attribInf = wdContext.nodeTable().getNodeInfo().getAttribute("key");
ISimpleType simpleType = attribInf.getSimpleType();
Set set = simpleType.getEnumeration();
Iterator it = set.iterator();
while(it.hasNext())
Sample = it.next().toString();
wdContext.nodeTable().currentTableElement().setKey(Sample);
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use this code to set the default value
wdcontext.currentcontextelement.setsel_att(<default value>);
Give the key value u want to set as default.
Regards,
karthik.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.