● onFilter
The display of rows in a table can be restricted using the onFilter action. This can improve the overview of the information contained in a table.
The Table UI element and the TableColumn element provide the application developer with an interface to display a so-called filter row. The filter row is displayed right below the column header area and does not change position when the user browses.
The filtering of table entries requires:
○ ^The option to specify a criterion for each table column to restrict the result list
Each table column enables you to bind its filterValue property to a context attribute that defines the value to be filtered. Due to the binding of this property to a context attribute, an input element, which can be used to enter the value to be filtered, is displayed in the column below the column header area. If the value set is assigned to the attribute, a drop-down box is provide instead of an input field. To use the value set for the filter, this must contain an entry with an initial value to reset the filter. At runtime, the filter input of the user is located in the context attribute to which the property is bound.
○ The option to start the filter process
The Table UI element provides the onFilter property, which can be associated with an action.Due to the association with an action, the filter row is displayed in the table. The filter row contains the button as the first element on the left side. When the user chooses this button, the associated action is executed.
The logic of the filter process is not implemented in Web Dynpro. The application developer must implement the action to be executed.
● onLeadSelect
Action executed when the lead selection of the table is to be changed (see selectionChangeBehaviour).
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
COL |
STRING |
ID of the column |
NEW_ROW_ELEMENT |
STRING |
|
OLD_ROW_ELEMENT |
STRING |
|
ROW |
I |
Row number |
● onScroll
Action executed when the user scrolls through the table. (Use this event only for Context Paging.)
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
NEW_FIRST_VISIBLE_ROW |
I |
New first visible row |
OLD_FIRST_VISIBLE_ROW |
I |
Old first visible row |
● onSort
Action executed when the user sorts the table.
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
COL |
STRING |
ID of the column you want to sort |
DIRECTION |
WDUI_TABLE_COL_SORT_DIR |
Sorting direction |