Show TOC

Providing Short Value Lists (SVS)Locate this document in the navigation structure

Use

To provide an input help containing a small list of predefined values (up to 50 entries), you use the DropDownByKey UI element and create the Simple Value Selector (SVS).

The entries to be displayed in the input help list are retrieved from a simple data type's enumeration of value/description text pairs. To make use of the generic SVS input help, you declare the data binding between the UI element and a context attribute of data type simple type.

Prerequisites
  • In the Local Dictionary, a simple data type exists that contains the required value set as its enumeration definition.

    More information: Creating Data Types

    Note

    You can fill the simple type enumeration dynamically at runtime using the ISimpleTypeModifiable interface.

  • In the view context of the view that is to contain the SVS, a value attribute is declared, that has this simple type defined as its type property.

    More information: Binding UI Element Properties to Dictionary Types

Procedure

1. Creating the UI Element

  1. In the view layout, create a DropDownByKey UI element.

    More information: DropDownByKey

  2. Bind the selectedKey property of the UI element to the value attribute with the data type simple type containing the required value set for your input help.

2. Filling the Label Text

A simple type definition has a Field Label property. You can use this value as label for your input help UI element.

  1. Create a Label UI element.

    More information: Label

  2. In the labelFor property of this Label UI element, assign your SVS UI element. Leave the text property empty.

More Information