Start of Content Area

Background documentation HorizontalContextualPanel Locate the document in its SAP Library structure

This UI element provides a navigation structure similar to the ContextualPanel with a two-level navigation hierarchy.

Examples of the Display

One-level

This graphic is explained in the accompanying text

Two-level

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_HORIZONTAL_CTX_PANEL

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

enabled

WDY_BOOLEAN

true

Yes

itemEnabled

WDY_BOOLEAN

true

Yes

itemSource

Context Node

 

Mandatory

itemText

Translatable text

 

Yes

itemTextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

 

Events in View Designer

Name

onSelect

Note

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

        UIElement

        ViewElement

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

enabled

ENABLED

WDY_BOOLEAN

itemEnabled

ITEM_ENABLED

WDY_BOOLEAN

itemSource

ITEM_SOURCE

OBJECT

itemText

ITEM_TEXT

WDY_MD_TRANSLATABLE_TEXT

itemTextDirection

ITEM_TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 itemTextDirection: inherit

CL_WD_HORIZONTAL_CTX_PANEL=>E_ITEM_TEXT_DIRECTION-INHERIT

 itemTextDirection: ltr

CL_WD_HORIZONTAL_CTX_PANEL=>E_ITEM_TEXT_DIRECTION-LTR

 itemTextDirection: rtl

CL_WD_HORIZONTAL_CTX_PANEL=>E_ITEM_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_HORIZONTAL_CTX_PANEL=>E_VISIBLE-NONE

 visible: visible

CL_WD_HORIZONTAL_CTX_PANEL=>E_VISIBLE-VISIBLE

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onSelect

ON_SELECT

Example

You can find an example of this UI element in the system in component WDR_TEST_EVENTS in the view HOR_CTX_PANEL.

 

 

 

End of Content Area