cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between dropdown index

Former Member
0 Kudos

Hi,

Pls tell me the dif between dropdown by index and dropdown by key?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

also go through section 3.3.1 "Using Dropdown Lists"

link:[http://www.sap-press.de/download/dateien/1079/sappress_web_dynpro_for_abap.pdf]

uday_gubbala2
Active Contributor
0 Kudos

As a reference you can try go through this [free sample version|http://www.sap-press.de/download/dateien/1079/sappress_web_dynpro_for_abap.pdf] of Ulli Hoffman's textbook Web Dynpro For ABAP. Go through section 3.3.1 "Using Dropdown Lists". Here Ulli has explained as to how he can achieve the same functionality using both the kinds of dropdowns. So this would help you have a better understanding of what you would do differently in either of the approaches.

Normally whatever functionality you wish to achieve using 1 kind of dropdown also can be achieved using the other except for 1 particular scenario. When using dropdown lists in table columns, using the DropDownByIndex view element is inevitable if selection lists with different values are to be displayed for different rows. The DropDownByKey view element cannot be used here, because the value set is always valid for all elements of a context node. For a table, this characteristic applies to every row and would therefore result in the same contents being displayed in every row. Hope that this helps resolve your problem.

Regards,

Uday

Former Member
0 Kudos

Hi,

DRP BY INDEX is used to have the custom dropdowns. Based on some condition, if you want to fill the dropdown

dynamically then this is used.

DRPBY KEY this is usaually used when we have values at DOMAIN level as fixedvalues, VALUE table.

Go through these links -

http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/content.htm

Regards,

Lekha.

Former Member
0 Kudos

if u want to knw hw to use these in ur WDA , see to my reply in the thread

link:[]

it can help u

uday_gubbala2
Active Contributor
0 Kudos

Hi,

There are 2 kinds of dropdowns in WDA (Dropdown by index & key) and they differ in their nature of binding properties. Just have a look at the info below:

Index Binding:

1) Selecting a value leads to a round trip only if the corresponding event property is bound to an action.

2) Selecting a value will change the lead selection.

3) The data stored in the context will not be changed by selecting any value.

Key Binding:

1) Selecting a value leads to a round trip only if the corresponding event property is bound to an action.

2) Selecting a value will not change the lead selection.

3) The data stored in the context element at lead selection will be overwritten by the key value related to the selected data.

Regards,

Uday