Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to use ItemListBox UI Element

Hi All,

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

Thanks & Regards,

Sreelakshmi.

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question