Start of Content Area

Background documentation ItemListBox Locate the document in its SAP Library structure

This UI element is similar to the classical GUI concept of a selection list with simple and multiple selection (list box). A list of text entries is displayed in a box of a fixed size, which if necessary you can scroll through. One or two columns are displayed for the values and possibly one column for symbols is displayed before the value column(s).

In the case of a simple selection the selected entry is determined by the lead selection of the dataSource. If the user changes the selection the property selectionChangeBehaviour is adhered to. With multiple selection the selected entries are determined by the dataSource selection only; selectionChangeBehaviour is not considered.

Note

To enable the development of Structure linkaccessibleapplications the property label is checked during the syntax check.

If no label has been set, and no descriptive text has been specified for the appropriate bound context element in the ABAP Dictionary, the property tooltip is checked.

Example of the Visual Display

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_ITEM_LIST_BOX

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

Structure linkdataSource

Context Node

 

Mandatory

Structure linkdescriptiveText

Translatable text

 

Yes

Structure linkdescriptiveTextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

Structure linkenabled

WDY_BOOLEAN

true

Yes

Structure linkexplanation

Translatable text

 

No

Structure linkiconSource

STRING

 

Yes

Structure linkmultipleSelection

WDY_BOOLEAN

false

Yes

Structure linkreadOnly

WDY_BOOLEAN

false

Yes

Structure linkselectionChangeBehaviour

WDUI_LEAD_SEL_CHNG_BEHVR

auto

No

Structure linktext

Translatable text

 

Yes

Structure linktextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

Structure linktooltip

Translatable text

 

Yes

Structure linkvisible

WDUI_VISIBILITY

visible

Yes

Structure linkvisibleItems

I

10

Yes

Structure linkwidth

STRING

 

Yes

 

Events in View Designer

Name

Structure linkonLeadSelect

 

Note

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

        Structure linkUIElement

        Structure linkViewElement

Dynamic Programming

For dynamic programming, the same properties, events and aggregations are available as in the View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

Structure linkdataSource

DATA_SOURCE

OBJECT

Structure linkdescriptiveText

DESCR_TEXT

WDY_MD_TRANSLATABLE_TEXT

Structure linkdescriptiveTextDirection

DESCR_TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 descriptiveTextDirection: inherit

CL_WD_ITEM_LIST_BOX=>E_DESCR_TEXT_DIRECTION-INHERIT

 descriptiveTextDirection: ltr

CL_WD_ITEM_LIST_BOX=>E_DESCR_TEXT_DIRECTION-LTR

 descriptiveTextDirection: rtl

CL_WD_ITEM_LIST_BOX=>E_DESCR_TEXT_DIRECTION-RTL

Structure linkenabled

ENABLED

WDY_BOOLEAN

Structure linkexplanation

EXPLANATION

WDY_MD_TRANSLATABLE_TEXT

Structure linkiconSource

ICON_SOURCE

STRING

Structure linkmultipleSelection

MULTIPLE_SELECTION

WDY_BOOLEAN

Structure linkreadOnly

READ_ONLY

WDY_BOOLEAN

Structure linkselectionChangeBehaviour

SELECTION_CHANGE_BEHAVIOUR

WDUI_LEAD_SEL_CHNG_BEHVR

 selectionChangeBehaviour: auto

CL_WD_ITEM_LIST_BOX=>E_SELECTION_CHANGE_BEHAVIOUR-AUTO

 selectionChangeBehaviour: manual

CL_WD_ITEM_LIST_BOX=>E_SELECTION_CHANGE_BEHAVIOUR-MANUAL

Structure linktext

TEXT

WDY_MD_TRANSLATABLE_TEXT

Structure linktextDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_ITEM_LIST_BOX=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_ITEM_LIST_BOX=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_ITEM_LIST_BOX=>E_TEXT_DIRECTION-RTL

Structure linktooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

Structure linkvisible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_ITEM_LIST_BOX=>E_VISIBLE-NONE

 visible: visible

CL_WD_ITEM_LIST_BOX=>E_VISIBLE-VISIBLE

Structure linkvisibleItems

VISIBLE_ITEMS

I

Structure linkwidth

WIDTH

STRING

 

Dynamic Programming of Events

View Designer Name

Runtime Name

Structure linkonLeadSelect

ON_LEAD_SELECT

 

Example

You can find examples in the system in the Web Dynpro application, WDR_TEST_UI_ELEMENTS.

 

 

End of Content Area