on 08-20-2011 10:29 AM
Hi,
How can I fill the Item ListBox with values?
I have written bellow code for this.
I have one node as Listbox with one element as val.
public void wdDoInit()
{
//@@begin wdDoInit()
IWDNodeInfo nodeinfo=wdContext.nodeListbox().getNodeInfo();
IWDAttributeInfo aInfo=nodeinfo.getAttribute("val");
ISimpleTypeModifiable Planttype=aInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valset=Planttype.getSVServices().getModifiableSimpleValueSet();
valset.put("111","111");
valset.put("222","222");
valset.put("333","333");
//@@end
}
but not able to see any values in list box.
Please tell me whether I miss any step or is there any other way to fill the values in item list box?
your code is for dropdownby key
if you are using dropdownbylist, you just have to create element and add to node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.