Show TOC

Table EventsLocate this document in the navigation structure

Use
  • onColSelect

    Column selection

    Caution

    Note that this event should no longer be used and is ignored under WDUIGUIDELINE=GL20 .

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    COL

    STRING

    Selected Column

  • onCustomFilter

    This event is called only for WDUIGUIDELINE=GL20 , and only if the entry ( Adjust ) was selected in the table header menu. Then the application should open a popup window with filter options and appropriate filtering. If no action handler has been bound for Table.onCustomFilter, the Web Dynpro framework opens a standard popup with an InputField, in which the user can enter a filter value.

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    COL

    STRING

    ID of the TableColumn, the menu of which the the entry was selected from.

  • onDrop

    Assignment of the action to be executed when the user moves an entry or multiple entries in the Table 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 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 Table.

    MIME_TYPE

    STRING

    Type of resource.

    MIME_TYPE is the value of the DragSourceInfo.mimeType property of the UI element dropped on the Table. If DATA supplies a URL, for example, the exact type of the resource in question can be indicated here.

    OFFSET

    I

    Position where the object is dropped:

    • -1 means above the entry

    • +1 means below the entry

    • 0 means that the object is dropped on the row.

    ROW_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Reference to the element that represents the table row, that is, the row on which the data is dropped.

    The value is initial if the Table is empty.

    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 TAGS.

  • onFilter

    Filter event, see also Filtering in Tables .

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    COL

    STRING

    This parameter is initial if WDUIGUIDELINE=GL11. If WDUIGUIDELINE=GL20, it contains the ID of the TableColumn, from whose menu the entry has been selected.

  • onLeadSelect

    Action executed when a user action changes the lead selection in a Table (see also selectionChangeBehaviour ). The event is not executed if only the selection has been changed.

    The use of the onLeadSelect event excludes the use of the onSelect event.

    NEW_ROW_ELEMENT and OLD_ROW_ELEMENT are 'not bound' if there has not been a lead selection, or if the lead selection was deselected by a user interaction.

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    NEW_ROW_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Element that the lead selection receives from the user interaction

    OLD_ROW_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Element that the lead selection had up to this point

    ROW

    I

    Row number

  • onScroll

    Caution

    This event is deprecated . See Data Segments in the Context

    Action executed when the user scrolls through the Table. (Use this event only for Context Paging .)

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMEN T

    Standard Parameter

    NEW_FIRST_VISIBLE_ROW

    I

    New first visible row

    OLD_FIRST_VISIBLE_ROW

    I

    Old first visible row

  • onSelect

    Action executed when a user action in a Table changes a selection or lead selection (for more information, see also selectionChangeBehaviour and Selection in Tables ).

    The use of the onSelect event excludes the use of the onLeadSelect event.

    Use this event instead of onLeadSelect only if you have to react directly to the (multiple) selection change, for instance, to change the enabled property of a ToolBarButton, since it causes additional roundtrips.

    NEW_LEAD_SELECTION and OLD_LEAD_SELECTION are 'not bound' if there has not been a lead selection, or if the lead selection was deselected by a user interaction. With actions that cause no changes to the lead selection, both parameters contain the current lead selection; they are not bound.

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    NEW_LEAD_SELECTION

    IF_WD_CONTEXT_ELEMENT

    Element that the lead selection receives from the user interaction

    OLD_LEAD_SELECTION

    IF_WD_CONTEXT_ELEMENT

    Element that the lead selection had up to this point

  • onSort

    Action executed when the user sorts the Table. For more information, see Sorting in Tables .

    You can find an example in the system in the DEMO_TABLE component.

    Parameter Name

    Type

    Description

    ID

    STRING

    Standard Parameter

    CONTEXT_ELEMENT

    IF_WD_CONTEXT_ELEMENT

    Standard Parameter

    COL

    STRING

    ID of the TableColumn you want to sort

    DIRECTION

    WDUI_TABLE_COL_SORT_DIR

    Sort direction ( UP or DOWN)

    MULTIPLE

    WDY_BOOLEAN

    Multiple column sorting is active.

    If the flag Table.multiSorting is set, the user can sort multiple columns by clicking the table column header and pressing the CTRL key at the same time. Each click leads to a roundtrip where the action handler for Table.onSort with the event parameter MULTIPLE=X is called.

    Note

    The event parameter col should be used instead of the event parameter column.