Show TOC

 AbstractDropDownByKey PropertiesLocate this document in the navigation structure

Properties in the View Designer
  • keyVisible

    The keys are also listed in the dropdown list box.

    Note that this property is not visible to the API, which means it cannot be changed by application developers.

  • selectedKey

    Value from the value set that is selected in the list displayed in the dropdown box.

    The following cases can occur:

    • DropDownByKey.selectedKey contains the initial value and the initial value is not contained in the value list: In this case the selected value is an empty string.
    • DropDownByKey.selectedKey contains a different value that is not in the value list: In this case this value is displayed in its internal format in the DropDownByKey field.
    • For the DropDownByKey.selectedKey-Attribut is set to isNullable=true in ContextNodeInfo: An empty entry is inserted in the first position in the DropDown list. When the value is selected, selectedKey is reset to the initial value and the isNull indicator is set for the attribute. If another value is selected, isNull is reset.

      You can set isNullable to declarative in the context editor. Alternatively, you can get the program to set isNullable:

      DATA WD_NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
       
      WD_NODE_INFO = ...
      WD_NODE_INFO->SET_NULLABLE( NAME = 'ATTRIBUTE_NAME' ).

    There is a system example in the DEMO_UI_STD_SELECTION component (in the DEMO_UI_DROPDOWN_BY_KEY application).

    Primary property