on 01-06-2006 12:10 AM
Hi,
I am trying to populate the dropdown lists dynamically.
Created Node Attribute and Simple Type with no enumeration. Assigned the Simple Type to Node Attribute. Mapped Node Attribute to UI element. Used following code to input key, value pairs.
IwdAttibuteInfo info=wdcontext.node<nodename>().getNodeInfo().getAttribute(<Attribute name created in the Node>);
ISimpleTypeModifiable stm=info.getModifiableSimpleType();
IModifiableSimpleValueSet svs=stm.getSVServices().getModifiableSimpleValueSet();
svs.put(Key,Value);
as suggested. But dropdown lists are still blank.
Any help is appreciated!!
Thanks
Kiran
Hi,
Try creating the value attribute directly under the Context rather than in a Value Node.
ISimpleTypeModifiable myType =
wdThis.wdGetAPI().getContext().getModifiableTypeOf(
"<attribute>");
Regards,
S.Divakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are using a DropDownByKey and you have bound the "selectedKey" property to the attribute with the value set?
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 |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.