Entering content frame

Background documentation ViewSwitch Locate the document in its SAP Library structure

With a ViewSwitch you can toggle between various views in a Contextual Panel.

 

Runtime Class

CL_WD_VIEW_SWITCH

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

itemEnabled

WDY_BOOLEAN

true

Yes

itemSource

context node

 

mandatory

itemText

Text

 

Yes

itemVisible

WDY_BOOLEAN

true

Yes

 

Events in the View Designer

Name

onSelect

Note

Further properties that can be inherited are defined in the associated higher-level class.  The associated interface elements are:

·         ViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

itemEnabled

ITEM_ENABLED

WDY_BOOLEAN

itemSource

ITEM_SOURCE

OBJECT

itemText

ITEM_TEXT

WDY_MD_TRANSLATABLE_TEXT

itemVisible

ITEM_VISIBLE

WDY_BOOLEAN

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onSelect

ON_SELECT

 

 

Leaving content frame