!--a11y-->
Example
Application of a Value Selector 
The following scenario is an example of a simple value selector within Web Dynpro: A single view contains a dropdown list box, which contains the constants for colors and uses the simple value selector for displaying the texts and an input field. The set of valid values in the input field is restricted to key entries of a predefined set of constants. In this case, the extended value selector is used as the value selector.

Since there are only six color values to be displayed, you should use the simple value selector. The texts of the possible color values are displayed in a dropdown list box.

The extended value selector is displayed when you choose the arrow button to the right of the Country input field.

After selecting the table row, the corresponding key value is automatically copied into the input field. Beforehand, the application developer can search for key texts and/or display texts in the set of constants by entering search criteria for them or sort the table rows by key. He or she can also display text by selecting the corresponding header column.


A generic input validation is executed when the user selects the Save! button. When the user enters a key value in the input field for the country key and this value is not contained in the constant set, an error message is displayed automatically. The set of constants is contained in the data type (Simple Type) of the value attribute to which the input field is bound.

Develop the example application of
the simple value selector in your SAP NetWeaver Developer
Studio.
