Entering content frame

Background documentation TreeByNestingTableColumn Locate the document in its SAP Library structure

The TreeByNestingTableColumn element allows the integration of a tree structure in a Table. The tree structure has nodes with subordinate leaves, similar to the UI element Tree.

Note

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.

Get and Set Selection

     Get all selected elements (including the lead selection)

selected_elements =

CL_WD_DYNAMIC_TOOL=>GET_TABLE_TREE_SELECTION(

DATA_SOURCE = context_node_of_the_data_source

).

     Get the lead selection only

lead_selection =

CL_WD_DYNAMIC_TOOL=>GET_TABLE_TREE_LEAD_SELECTION(

DATA_SOURCE = context_node_of_the_data_source

).

     Set lead selection

With including_single_selection=true all single selections and multi-selections are removed and one single selection is set to the element of the lead selection.

CL_WD_DYNAMIC_TOOL=>SET_TABLE_TREE_LEAD_SELECTION(

LEAD_SELECTION = new_lead_selection_element

DATA_SOURCE = context_node_of_the_data_source

).

     Set all selections

CL_WD_DYNAMIC_TOOL=>SET_TABLE_TREE_LEAD_SELECTION(

DATA_SOURCE = context_node_of_the_data_source

).

 

Example of the Display

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_TREE_BY_NST_TABLE_COL

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

cellDesign

WDUI_TABLE_CELL_DESIGN

standard

Yes

childrenLoaded

WDY_BOOLEAN

false

Yes

expanded

WDY_BOOLEAN

false

mandatory

isLeaf

WDY_BOOLEAN

false

Yes

resizable

WDY_BOOLEAN

true

Yes

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

 

Yes

 

Aggregations in the View Designer

Name

Cardinality

Type

Header

0..1

Caption

Cell-Editor

1..1

TableCellEditor

 

Events in the View Designer

Name

onLoadChildren

Note

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

·         AbstractTreeTableColumn

·         AbstractMasterTableColumn

·         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

cellDesign

CELL_DESIGN

WDUI_TABLE_CELL_DESIGN

 cellDesign: badvalue_dark

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-BADVALUE_DARK

 cellDesign: badvalue_light

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-BADVALUE_LIGHT

 cellDesign: badvalue_medium

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM

 cellDesign: criticalvalue_dark

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_DARK

 cellDesign: criticalvalue_light

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_LIGHT

 cellDesign: criticalvalue_medium

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-CRITICALVALUE_MEDIUM

 cellDesign: goodvalue_dark

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_DARK

 cellDesign: goodvalue_light

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_LIGHT

 cellDesign: goodvalue_medium

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GOODVALUE_MEDIUM

 cellDesign: group_level1

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL1

 cellDesign: group_level2

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL2

 cellDesign: group_level3

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-GROUP_LEVEL3

 cellDesign: key_medium

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-KEY_MEDIUM

 cellDesign: negative

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-NEGATIVE

 cellDesign: positive

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-POSITIVE

 cellDesign: standard

CL_WD_TREE_BY_NST_TABLE_COL=>E_CELL_DESIGN-STANDARD

childrenLoaded

CHILDREN_LOADED

WDY_BOOLEAN

expanded

EXPANDED

WDY_BOOLEAN

isLeaf

IS_LEAF

WDY_BOOLEAN

resizable

RESIZABLE

WDY_BOOLEAN

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TREE_BY_NST_TABLE_COL=>E_VISIBLE-NONE

 visible: visible

CL_WD_TREE_BY_NST_TABLE_COL=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onLoadChildren

ON_LOAD_CHILDREN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

Header

HEADER

0..1

Cell-Editor

TABLE_CELL_EDITOR

1..1

Example

You can find an example of this UI element in the system in the component, WDT_TREE_TABLE_BY_NST.

 

 

 

Leaving content frame