on 04-03-2008 3:11 AM
Dear Frds,
I am using Item List box in my application...
I am selecting 5 to 6 values in Item list box..
After selecting i want to display the values which i selected!
How do i get all selected values????
Thanks
Hi sravan,
Try this link
This will get you ideas of listBox.
http://help.sap.com/javadocs/nw04/current/hb/com/sapportals/htmlb/ListBox.html
Regards
- Vinod
*
Edited by: Vinod V on Apr 3, 2008 10:31 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sravan
see the below link ,it will be helpful for u.
[http://127.0.0.1:1355/help/index.jsp?topic=/com.sap.devmanual.doc.user/f2/673942dd4af83ae10000000a1550b0/content.htm|http://127.0.0.1:1355/help/index.jsp?topic=/com.sap.devmanual.doc.user/f2/673942dd4af83ae10000000a1550b0/content.htm]
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have already binded your list box with a data source. Let say it is "ListNode".
I have listed two ways to iterate selected elements.
Iterator iter = wdContext.nodeListNode().iterateSelectedElements();
while (iter.hasNext()) {
//Selected element;
IListNodeElement elem = (IListNodeElement) iter.next();
}
OR----------------->
IListNodeNode listNode = wdContext.nodeListNode();
for (int i = 0; i < listNode.size(); i++) {
if(listNode.isMultiSelected(i))
//Selected element;
listNode.getElementAt(i);
}
regards,
Praveen
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.