cancel
Showing results for 
Search instead for 
Did you mean: 

Need to select Multiple values in Drop Down

Former Member
0 Kudos

Hello friends,

I have a drop Down box, but the problem is I need to select multiple records.

Eg : if many of the job search sites we can select multiple cities for Job preference locations.

Similarly I need to select Multiple records ina the drop down..

Any suggestions Pls,

Ster

Accepted Solutions (1)

Accepted Solutions (1)

former_member184111
Active Contributor
0 Kudos

Hi Ster,

You can use HTMLB:ListBox .Go through the page ListBox.htm of BSP application SBSPEXT_HTMLB .

Regards,

Anubhav

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Ster,

We have the option of selecting multiple dropdownlist values in webdynpro. In BSP i dont think is there option for multiple selections. And as said by Anubhav we have a option to select muliple values in ListBox.

Here is a coding for this:

<htmlb:listBox            id          = "lsb%>"  multiple = "TRUE"  >
          <htmlb:listBoxItem      key = "key1"   value = "Red" />
          <htmlb:listBoxItem      key = "key2" value = "Green" />
          <htmlb:listBoxItem      key = "key3"  value = "Blue" />
          <htmlb:listBoxItem      key = "key4" value = "Black" selected = "true"/>
        </htmlb:listBox>

By using the property Multiple we can select more than one values. While selecting more than one value we have to press the button control key. So that we can select multiple values.

Appreciate if its Helpful.

Regards,

Anita Vizhi Arasi B

Former Member
0 Kudos

Hi Ster

We cannot select multiple values in drop down, this can be achieved by list box.

Hope this is clear let me know if you have any more.

Please find a sample code for the List Box:

<input type="checkbox" name="color" value="red" selected>Red<br>
If we want to select multiple items, we specify "multiple" at the end of the <select> tag, i.e.,
<select name=color multiple>

Thanks,

Rajani.

Former Member
0 Kudos

Any Inputs.

Thanks,

Ster