AbstractTreeTableColumn Events
Use
-
onLoadChildren
This event is triggered when a tree node is expanded for the first time.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
PATH
STRING
Context path of the related node
-
onToggle
This event is called if a node is expanded or collapsed in the (hierarchical) table column.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
EXPANDED
WDY_BOOLEAN
New status of node:
-
abap_true= expanded
-
abap_false= collapsed
PATH
STRING
Context path of the related node
-
Restrictions
-
You are not permitted to use onToggle and onLoadChildren at the same time.
-
If you bind Table.OnLeadSelection and AbstractTreeTableColumn.OnToggle at the same time, it can result in two actions in one roundtrip: If a child of a node is the lead selection and this node is collapsed, the lead selection jumps from the child to the node. If you want to bind both events, set the Application ParameterWDALLOWMULTIPLEACTIONS = X.
Example
You can find a test example in the system in component WDR_TEST_TABLE under the link Selection on tab Table+TreeByNesting or TableTreeByKey. There in the dropdown list at the bottom you can activate which tree event you want to have.