Show TOC Start of Content Area

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

Events in the View Designer

●      onDrop

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

Note

You can only use this event in dynamic progamming. Therefore, create a DragSourceInfo and a DropTargetInfo, append these to the GridData, and set the event dynamically.

Note that Drag&Drop is only possible with a one-column GridLayout.

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.

INDEX

I

Entry count

This information is the number of the entry next to which data is dropped with Drag&Drop.

The index is 0 if the GridLayout is empty.

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

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