on 05-05-2009 12:52 PM
Hi All,
Please provide me solution for how to use ItemListBox UI Element.
Thanks & Regards,
Sreelakshmi.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.