Ansicht
Dokumentation

BCALV_DND_02 - Drag Icons from Tree to Rows of the Grid

BCALV_DND_02 - Drag Icons from Tree to Rows of the Grid

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Description

Report SAPSIMPLE_TREE_CONTROL_DEMO shows how the simple tree control (class CL_GUI_SIMPLE_TREE) is used.

In a simple tree control, a node consists of a folder/leaf symbol and a text. A node of the tree is described by Dictionary structure TREEV_NODE. The user must include this structure in a self-defined structure that contains a field named 'TEXT'.

Events

Any events triggered are displayed in the frame on the right screen border. The following events can be triggered in the sample program:

node double click

A node was double-clicked.

expand no children

A node may have the property of showing a + sign for the folder/leaf symbol although no children exist in the control (set field EXPANDER in TREEV_NODE). If the user clicks such a node, event EXPAND_NC is triggered. In the example, node "Child1" has this property. The sample program responds to this event by transferring two new nodes to the control (New1 and New2).

Requirements

Output

Example






RFUMSV00 - Advance Return for Tax on Sales/Purchases   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 1195 Date: 20240520 Time: 054448     sap01-206 ( 36 ms )