cancel
Showing results for 
Search instead for 
Did you mean: 

multiple selection of dropdown box in webdynpro

Former Member
0 Kudos

Hello,

Please help me, if anybody knows.

I want to know how to implement multiple selection in dropdown box using webdynpro.

Regards

Rajakumar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajakumar Kandasamy,

I dont think it is possible to select multiple values in a dropdown box of a WD application. May i know for what and where you need such a requirement ?? go through the following links to know why you cannot use drop down box and probably you can use the alternative - ItemListBox element.

Ref :

A <b>DropDownByIndex UI element</b> provides the user with a dropdown list box. You cannot select more than one entry from the selection list. The UI element consists of a text field, a button, and a selection list. Any list entry already selected is displayed in the text field. When selecting the button, a list with all possible values is displayed.

http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/422b035f01914e80251a660e39ab14/frameset.htm

click <u>Standard Library (Simple Elements)->DropDownByIndex </u>

A <b>DropDownByIndex UI element</b> provides the user with a dropdown list box. You cannot select more than one entry from the selection list. The UI element consists of a text field, a button, and a selection list. Any list entry already selected is displayed in the text field. When you select the pushbutton, a list with all possible values is displayed.

http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/422b035f01914e80251a660e39ab14/frameset.htm

click <u>Standard Library (Simple Elements)->DropDownByIndex </u>

I suppose you can use <b>ItemListBox </b> instead.

A classical GUI concept of a selection list with simple and multiple selection (list box). A list of text entries is displayed in a box of a fixed size, which if necessary you can scroll through.You can find further details in this link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/422b035f01914e80251a660e39ab14/frameset.htm

click <u>Standard Library (Simple Elements)->ItemListBox</u>

I am sure you can also find some help in the following tutorial link.

<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Web Dynpro Tutorials</a>

Try reading these. Please do let us know if you could solve your problem. Gud luck !

Rgds,

Sreenivas

Former Member
0 Kudos

Hi Sreeni,

"ItemListBox" itself is not listed in my SAP NWDS Element list when I am trying to add. I am using the version 2.0.9. Can you tell me how to add this?

I want to load a list of values in an element from xml file. We should allow the user to choose multiple values at a time. It can be any element,either dropdown, ItemListBox etc.. This is what my requirement.

could you please provide me a solution?

Regards

Rajakumar

Former Member
0 Kudos

In NW04 (what you have is NW04 SP9), use a Table or maybe a CheckBoxGroup.

Armin

Former Member
0 Kudos

Hi,

The element ItemListBox is not available in my NWDS.I have SP9 installed. Is it possible to add this element by including some plugins?. If yes, any one can tell me which plugin I need to include?

Thanks in Advance

Raj.

Former Member
0 Kudos

No, the ItemListBox is not part of NW04 and you cannot add it. That's why I recommended using a Table or CheckBoxGroup.

A Table without header and footer, and with visibleRowCount=-1 (=ALL) comes close to ItemListBox.

Armin

Former Member
0 Kudos

Hi Rajakumar

I think DropDown by index/key multiple selection is not possible in NW04.

Can you please elaborate the requirement i.e why you require this.

Regards

Ananda

Former Member
0 Kudos

Hi Ananda,

Thanks for your reply.

I have 3 dropdown box, dynamically I want to add the list. Based on the first dropdown selection, the second dropdown list should populate.I implemented using DropDownByKey.

Now my requirement is, want to select more than one value from the second dropdown and I want to display the selected values separated by comma.

Thanks in Advance

Rajakumar

Former Member
0 Kudos

Hi RajaKumar

No way you can multiselect from dropdown.You can refer to this SAP help link

http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/content.htm

Instead, for multi-selection capability use table UI element with one column with properties selectionMode=multi and retrieve the values.

Hope this helps

Regards

Ananda