on 06-29-2007 7:14 AM
Hi,
How can you populate an Item List Box with values from Simple type?
Hi Malita,
Create a variable(Say ListBox) in context and assign the dictionary simple type to this.
I assume the node for ListBox is ItemListBox with an attribute Value. Bind ItemListBox to datasource and Val to text
The following program loads value from the dictionary simple type enumeration to ListBox
IWDAttributeInfo att=wdContext.getNodeInfo().getAttribute(IPrivateFileUploadView.IContextElement.LIST_BOX);
ISimpleTypeModifiable ss=att.getModifiableSimpleType();
IModifiableSimpleValueSet sss=ss.getSVServices().getModifiableSimpleValueSet();
Iterator it=sss.entrySet().iterator();
IPrivateFileUploadView.IItemListBoxNode lNode=wdContext.nodeItemListBox();
IPrivateFileUploadView.IItemListBoxElement lEl;
while(it.hasNext())
{
Map.Entry m=(Map.Entry)it.next();
String key=""+m.getKey();
String val=""+m.getValue();
lEl=lNode.createItemListBoxElement();
lNode.addElement(lEl);
lEl.setValue(val);
}
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx... viji n Fahad
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 Malita,
Here is a help for
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/b9/4ce641fb6e3f5de10000000a1550b0/frameset.htm">ItemListBox</a>. Chek it out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.