cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownByKey - support for selecting multiple items?

Former Member
0 Kudos

Hello

Is there a simple way to allow a selection of multiple items (zero or more) when using a dropdown ui element?

Thanks in advance

Rob

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rob,

as far as i know, no. And to be honest, i can't see the benefit in doing this, if it was possible.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

A want to be able to select more than one item in a search mask.

For example:

-


Select Search criteria:

Color: (red,green,blue,white) [Dropdown]

Size: (small, medium, large) [Dropdown]

[Start Search button]

---

So the end user can select for example "red or green" items which are "small or large" using a single selection.

regards,

Rob

Former Member
0 Kudos

Please read the Javadoc:


/**
 * Web Dynpro AbstractDropDownByIndex API.
 *
 * Abstract base class of drop-down list classes with index based context binding.
 * Represents a one-from-many selection visualized by a text field, a button and a drop-down list.
 * The selected value is displayed in the text field, the list of all selectable values is displayed
 * in the drop-down list which appears when the button is pressed.
 * <p>
 * <strong>Data binding:</strong>
 * <br>
 * The displayed texts and the selection are retrieved from a context.
 * The context must provide a node <code>X</code> with <code>X.cardinality = 0..n</code> with an attribute
 * <code>y</code> of type <code>String</code>.
 * The selectable values are the values of attribute <code>y</code> of the node elements.
 * The selected value is determined by the lead selection of node <code>X</code>.
 * <p>
 * The property <code>texts</code> must be bound to the attribute <code>y</code>.
 *
 * <p>This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!</p>
 *
 * @author SAP
 * @SAPWebDynproPart 2
 */

A one-from-many selection control will by definition never allow a multiple selection.