Start of Content Area

Background documentation AbstractTreeNodeType Events  Locate the document in its SAP Library structure

Events in View Designer

      onAction

Assignment of the action to be executed when the user clicks on an entry in the tree.

Parameter Name

Type

Description

ID

STRING

Standard parameter

CONTEXT_ELEMENT

IF_WD_CONTEXT_ELEMENT

Standard parameter

PATH

STRING

Path

      onDrop

Assignment of the action to be executed when the user moves an entry or multiple entries in the tree by means of Drag&Drop.

Parameter Name

Type

Description

ID

STRING

Standard parameter

CONTEXT_ELEMENT

IF_WD_CONTEXT_ELEMENT

Standard parameter

DATA

STRING

Textual representation of data transported to DropTarget. Along with mimeType, this property forms a link to resources.

MIME_TYPE

STRING

Type of resource.

Note that this property is not currently used; it is intended for future developments.

OFFSET

I

Position where the data is dropped:

      -1 means above the entry

      +1 means below the entry

      0 means directly on the entry.
Application developers must specify in their programs exactly what should happen.
Specify 0 only if you want to drop the data in a tree node, empty table, or empty ItemListBox.

PATH

STRING

Specifies up or down from what position the insertion is to be. This is the context path belonging to the tree node.

TAGS

STRING

This property corresponds to flavors in the programming environment. The flavor describes the type of drag and drop description. In a drag and drop operation, you can only drop an object onto another if both have at least one common description.

 

 

End of Content Area