cancel
Showing results for 
Search instead for 
Did you mean: 

Issue related to Item ListBox

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

your code is for dropdownby key

if you are using dropdownbylist, you just have to create element and add to node.

Answers (0)