Show TOC

MatrixLayout Events Locate this document in the navigation structure

 

  • onDrop

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

    Note Note

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

    End of the note.

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameters

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameters

    DATA

    STRING

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

    DATA is the value of the DragSourceInfo.data property of the UI element dropped on the MatrixLayout.

    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 MatrixLayout is empty.

    MIME_TYPE

    STRING

    Type of resource.

    Note Note

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

    End of the note.

    OFFSET

    I

    Position where the data is dropped:

    • -1 means über 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.