cancel
Showing results for 
Search instead for 
Did you mean: 

drop down list

Former Member
0 Kudos

Hi All,

I'm new to webdynpro,can someone tell me how to have a drop down list for a field.

will be rewarded..

kavitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi kavitha...

you can use this link:

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

you calso find examples in the component wdr_test_events and in the view

dropdownbyidx

dropdownbykey

--regards,

alex b justin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kavitha,

Two types of drop down list are available

1. drop down by key

2. drop down by index

drop down by index

The values displayed by the value selector can be stored in the context, or they can

by related to the type to which the UI element is referring.

The UI element has to be bound to an attribute that is a child

of a context node of cardinality 0..n or 1..n. Before the view (containing the

value selector) can be rendered, the collection has to be populated. This means

all values to be displayed in the value selector are to be stored in the context as

attribute values of the collection elements. This kind of data binding is called

index binding.

drop down by key

its done by relating the value set to the type to which the UI element is referring. In this case,the UI element has to be bound to a context attribute, which is typed as follows:

The attribute is an ABAP Dictionary type, which is based on a domain

with fixed values. The short texts related to the fixed values are displayed

by the value selector.

The attribute is a Web Dynpro runtime type with fixed values. These fixed

values are displayed by the value selector.

The attribute's type is arbitrary. The value set is assigned dynamically by

changing the attribute's metadata at runtime.

This kind of data binding is called key binding.