Table with additional features.
When giving database fields and criteria, the table is automatically filled with data.
Please use this element instead of static tables, or similar.
Configuration
Fields
It is mandatory to set either
fields.n.field OR both fields.n.function and fields.n.functionParams.Criteria
Criteria constrain which data to have in the table.Criteria must contain either
value or valueId. Use one or the other, but not both for the same criteria.Sort order and grouping (optional)
Optional config
A word about ticket status:
If your table contains a column ticket.status and showTicketStatus is set, each ticket will have an icon showing its status. Urgent tickets are also highlighted.
Example
In this example, the data table contains requests with ID less than 50. The table lists the title, the owner’s username, and the status. The ID is a hidden field.Using callbacks
- Add hidden fields to pass additional values to the functions
- In the Body tab, write 2 functions, one for init and one for display
- In the Simple values tab, set
callbackInitandcallbackDisplayto the function names.
Functions
getFieldValue(string)
setFieldValue(String action, Map values)
menuIndex and commandIndex are optional zero-based indexes for placement.
Flags are the same as described for StaticGrid.