The TreeByKeyTableColumn element allows the integration of a tree structure in a Table. It is displayed exactly the same as a TreeByKeyTableColumn element, but is implemented using the parent key relationship.
Note that the properties isLeaf, expanded, parentKey, and rowKey must be bound to the attributes of dataSource. The binding to subnodes of dataSource is not permitted here because this would affect performance.
Runtime Class |
CL_WD_TREE_BY_KEY_TABLE_COL |
Properties in the View Designer
Name |
Type |
Initial Value |
Bindable |
ID |
STRING |
(automatic) |
No |
WDUI_TABLE_CELL_DESIGN |
standard |
Yes |
|
WDY_BOOLEAN |
false |
Yes |
|
WDY_BOOLEAN |
false |
mandatory |
|
WDY_BOOLEAN |
false |
Yes |
|
STRING |
|
Yes |
|
WDY_BOOLEAN |
true |
Yes |
|
STRING |
|
Yes |
|
WDUI_VISIBILITY |
visible |
Yes |
|
STRING |
|
Yes |
Aggregations in the View Designer
Name |
Cardinality |
Type |
0..1 |
||
1..1 |
TableCellEditor |
Events in the View Designer
Name |
Further properties that can be inherited are defined in the associated higher-level class. The associated interface elements are:
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 |
CELL_DESIGN |
WDUI_TABLE_CELL_DESIGN |
|
cellDesign: badvalue_dark |
CL_WD_ABSTR_MASTER_TABLE_COL=>E_CELL_DESIGN-BADVALUE_DARK |
|
cellDesign: badvalue_light |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-BADVALUE_LIGHT |
|
cellDesign: badvalue_medium |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM |
|
cellDesign: criticalvalue_dark |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_DARK |
|
cellDesign: criticalvalue_light |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_LIGHT |
|
cellDesign: criticalvalue_medium |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_MEDIUM |
|
cellDesign: goodvalue_dark |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_DARK |
|
cellDesign: goodvalue_light |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_LIGHT |
|
cellDesign: goodvalue_medium |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_MEDIUM |
|
cellDesign: group_level1 |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL1 |
|
cellDesign: group_level2 |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL2 |
|
cellDesign: group_level3 |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL3 |
|
cellDesign: key_medium |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-KEY_MEDIUM |
|
cellDesign: negative |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-NEGATIVE |
|
cellDesign: positive |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-POSITIVE |
|
cellDesign: standard |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_CELL_DESIGN-STANDARD |
|
CHILDREN_LOADED |
WDY_BOOLEAN |
|
EXPANDED |
WDY_BOOLEAN |
|
IS_LEAF |
WDY_BOOLEAN |
|
PARENT_KEY |
STRING |
|
RESIZABLE |
WDY_BOOLEAN |
|
ROW_KEY |
STRING |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_TREE_BY_KEY_TABLE_COL=>E_VISIBLE-VISIBLE |
|
WIDTH |
STRING |
Dynamic Programming of Events
View Designer Name |
Runtime Name |
ON_LOAD_CHILDREN |
Dynamic Programming of Aggregations
View Designer Name |
Runtime Name |
Cardinality |
HEADER |
0..1 |
|
TABLE_CELL_EDITOR |
1..1 |
You can find an example of this UI element in the system in the component, WDT_TREE_TABLE_BY_KEY.