
You can use a ViewSwitch to toggle between various views in a ContextualPanel .
|
Runtime Class |
CL_WD_VIEW_SWITCH |
|
Name |
Type |
Initial Value |
Bindable |
|---|---|---|---|
|
STRING |
(automatic) |
No |
|
|
WDY_BOOLEAN |
true |
Yes |
|
|
WDUI_VIEW_SWITCH_ICON |
none |
Yes |
|
|
Context Node |
Mandatory |
||
|
Translatable text |
Yes |
||
|
WDY_BOOLEAN |
true |
Yes |
|
Name |
|---|
Other properties that can be inherited are defined in the related higher-level classes. The related UI elements are:
Implementation Details
Dynamic Programming
For dynamic programming, the same properties, events and aggregations are available as in the View Designer. But note that the spelling format and use of upper/lower case is different.
|
View Designer Name |
Runtime Name |
Type |
|---|---|---|
|
ITEM_ENABLED |
WDY_BOOLEAN |
|
|
ITEM_ICON |
WDUI_VIEW_SWITCH_ICON |
|
|
itemIcon: blank |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-BLANK |
|
|
itemIcon: news |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-NEWS |
|
|
itemIcon: none |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-NONE |
|
|
itemIcon: overview |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-OVERVIEW |
|
|
itemIcon: report |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-REPORT |
|
|
itemIcon: selfService |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-SELF_SERVICE |
|
|
itemIcon: work |
CL_WD_VIEW_SWITCH=>E_ITEM_ICON-WORK |
|
|
ITEM_SOURCE |
OBJECT |
|
|
ITEM_TEXT |
WDY_MD_TRANSLATABLE_TEXT |
|
|
ITEM_VISIBLE |
WDY_BOOLEAN |
|
View Designer Name |
Runtime Name |
|---|---|
|
ON_SELECT |
See the example in ContextualPanel .