cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ItemListBox UI Element

Former Member
0 Kudos

Hi All,

Please provide me solution for how to use ItemListBox UI Element.

Thanks & Regards,

Sreelakshmi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

you can create multiple elements for multiple values

Iprivate<viewname>.Icontextelement element = wdcontext.node<valuenode>.createValuenodelement();

element.setname("SAP");

element.setid(1234)

element.setAddress(India);

wdcontext.nodeValuenode.addElement(element);

Iprivate<viewname>.Icontextelement element1 = wdcontext.node<valuenode>.createValuenodelement();

element1.setname("SAP");

elemen1.setid(1234)

element1.setAddress(India);

wdcontext.nodeValuenode.addElement(element1);

and so on or make a for loop as

for(int i=0;i<10;i++)

{

Iprivate<viewname>.Icontextelement element = wdcontext.node<valuenode>.createValuenodelement();

element.setname("SAP"+i);

element.setid(1234+i)

element.setAddress(India+i);

wdcontext.nodeValuenode.addElement(element);

}

try this

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please go through the following link

Regards

Ayyapparaj

Former Member
0 Kudos

HI

create a value node with context attributes and then bind the context to the node to the

datasource property of the itemlistbox and attributes to the description text or the text property ,

if you need two columns in the itemlistbox add to the both or the text property and

then create element as

Iprivate<viewname>.Icontextelement element = wdcontext.node<valuenode>.createValuenodelement();

element.setname("SAP");

element.setid(1234)

element.setAddress(India);

wdcontext.nodeValuenode.addElement(element);

try this

Thanks

Former Member
0 Kudos

Hi,

I tried with ur code but it display only one row in the itemlistbox. But I want to display more than one rows in the itemlistbox.

please provide me solution.

Thanks & Regards,

Sreelakshmi.

yogesh_galphade
Contributor
0 Kudos

Hi

Check the list box properties set to display rows according to your need.