cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding item list Box in webdynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member485701
Active Participant
0 Kudos

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