The Data Table widget is used to allow form designers to display structured data in a tabular format. Data is retrieved from a JSON form variable and presented as rows and columns when the application is running. This widget is useful for displaying collections of related information, such as search results, transaction records, approval history, or data returned from external systems.
Layout and sizing of the table is rendered by the application UI layer and cannot be configured. Columns are distributed automatically by the renderer.
Data tables support the following data types:
| Data type | Description |
|---|---|
| text | Displays text values, including alphanumeric and special characters. For example, Warning for the user. |
| decimal | Displays numeric values that can contain decimal places. For example, 12.5 |
| integer | Displays whole numbers without decimal places. For example, 12. |
| amount | Displays monetary values using the currency format defined in the Schema Definition. For example, $12. |
| date | Displays date values using the format defined in the Schema Definition. For example, 2000-12-01. |
| boolean | Displays a true or false value. |
| JSON | Displays the result of a JSON expression. |
| fileSize | Displays file sizes. For example, 16 MB. |
| icon | Displays material icon supported by Google, for example group. For more information, search the Google documentation for Material Symbols. |
The basic properties of the widget are:
| Property | Description |
|---|---|
| Label | Specifies the text displayed for the widget on the form. |
| ID | Specifies the unique identifier for the widget. The ID is used internally to reference the widget within the form definition. |
| Colspan | Specifies the number of columns the widget spans within the form layout. |
| Rowspan | Specifies the number of rows the widget spans within the form layout. |
| Form variable (JSON) |
Specifies the JSON form variable that provides the data displayed in the table. Only JSON-type form variables are available for selection. If no JSON form variables exist, the list is empty. To learn more about the JSON structure, seeGenerating Data Table Rows from Objects in JSON. To create a new form variable, see Creating Form Variables. |
| Path to array in JSON |
Specifies the path to the array within the selected JSON variable that contains the records to display. Nested JSON objects are referenced using period notation, for example: firstnestedlevel.secondnestedlevel.thirdnestedlevel This field accepts any characters that are accepted according to the JSON specification. If the Path to array in JSON field is empty, its default value is path. For more information, see Configuring a Path to Array in JSON. To learn more about the JSON structure, seeGenerating Data Table Rows from Objects in JSON. |