Show TOC

 GridLayout EventsLocate this document in the navigation 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 .

    You can only use this event in dynamic programming. 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.

    DATA is the value of the DragSourceInfo.data property of the UI element that was dropped onto the GridLayout.

    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.