Skip to main content
This is a new version of the old screen element 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 callbackInit and callbackDisplay to the function names.
Learn more about callbacks in the CRMScript documentation

Functions

getFieldValue(string)

You can also use rowid.n.<field> where n is the ID of the row instead of its number.

setFieldValue(String action, Map values)

menuIndex and commandIndex are optional zero-based indexes for placement. Flags are the same as described for StaticGrid.