Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

differnce between drop down by key and index.

what is the difference between drop down by key and drop down by index.

Former Member
Former Member replied

Hi Venki,

DropDownByKey

-


A DropDownByKey UI element provides the user with a selection list from which he or she can select no more than one entry. 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.

DropDownByIndex

-


A DropDownByIndex UI element 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.

Differences

-


1.) The DropDownByIndex variant gets the selection from a context node (lead selection). So to select a certain entry, set the lead selection for this node where as The DropDownByKey variant gets its selection from the context attribute to which the "selectedKey" property is bound. To set the selection, set the value of this context attribute to the key

2.) However, the data binding model for the DropDownByKey UI element has a completely different concept.

The two types of DropDown's elements do not differ from each other when displayed on the screen.

With Regards,

Roop Kumar.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question