on 09-07-2009 9:59 AM
Hi,
How can i clear inside of DropDownByKey?
Thanks.
Hi,
Get the value set and clear value set
e.g.
IWDAttributeInfo attInf = wdContext.getNodeInfo().getAttribute(wdContext.currentContextElement().NAME);
ISimpleTypeModifiable stm = attInf.getModifiableSimpleType();
}IModifiableSimpleValueSet svs= stm.getSVServices().getModifiableSimpleValueSet();
svs.clear();
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I could not get your requirement clearly.
If you want to clear (remove ) the selected value of the dropdown from the list try like this:
svs.removeKey(wdContext.currentContextElement().get<attribute>());
If you want to clear the dropdown (but not remove from the list) and show the blank in the dropdown, try like this:
wdContext.currentContextElement().set<attribute>(" ");
Regards,
Siva
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.