on 08-24-2005 9:05 AM
hi
i want to insert the values in a DropDownKey dynamically
i.e., without using Dictionary Enumeration.
for this i created dropdown ui element and binded it to the context attribute 'key'.
please help me
any snippet of code is valuable
thanks and regards
Narayan Adhurthi.
hi narayan,
try this piece of code
IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("key");
ISimpleTypeModifiable modinfo = attinfo.getModifiableSimpleType(); IModifiableSimpleValueSet valset = modinfo.getSVServices().getModifiableSimpleValueSet();
valset.put(new String("key"),value);
if you want to add more elements again use valset.put
regards,
rahul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can modify the value set of a context attribute at runtime, see
Search this forum for "modifiable".
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.