The Dyanmic Grid component is a Centauri (1.0) runtime component and is not supported in the Vega (2.0) runtime.
Overview
The Dynamic Grid component combines the ease and usability of a spreadsheet with the power and flexibility of an Unqork grid component. In Express View, your end-user gets a streamlined, spreadsheet-like data entry and exploration experience. Built with large-scale data sets in mind, use a Dynamic Grid to focus on supporting high-performance data consumption, analysis, and exploration use cases. Dynamic Grid also includes features like pivot mode, data aggregation and grouping, and more.
You have various options for populating your Dynamic Grid component:
Inline editing and data entry in Express View.
Using a logic component to output data to the Dynamic Grid component. For example, using a Plug-In component to retrieve data from a reference Data Collection. Then, using a Data Workflow component to output the data to the Dynamic Grid component.
Importing data from another component, like a Data Table component, using the Data Reference Key option. The grid (the Dynamic Grid component's front-end) populates with the data stored under the Data Reference Key. It's important to note that, in this case, the grid is read-only.
Whenever data entry takes place, ensuring the integrity of your data is important. That's why the Dynamic Grid component provides a strong validation framework. When configuring your Dynamic Grid component, you’ll assign each column a column type. For example, a Number, Text Field, or Checkbox. Having defined column types means your end-user can only enter values that match your data model. You can also set column-specific validation rules for even greater control.
You'll find the Dynamic Grid component under the Display & Layout group to the left of the Module Builder.
About the Configuration Window
To learn more about general component settings, view our General Component Settings article.
Display Panel
Setting | Description |
---|---|
Title | The heading of the grid. The end-user sees this title at the top of the grid in Express View.
|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. The tooltip displays next to the title. |
Helper Text | A quick tip describing the expected inputs or how to use the grid. The Helper Text displays below the Dynamic Grid component's title in Express View. |
Custom CSS Class | Enter a Custom CSS Class to apply to your component. Custom CSS lets you maintain a consistent look and feel when the field or element is part of a template or multiple modules. Updated CSS styling applies to all components that reference this custom class name. |
Grid Height | Select how to set the maximum height of the grid. Options include the following:
|
Set Grid Height | Set the height of your grid. The unit depends on your Grid Height setting selection.
|
Hide Component | Shows or hides the component from view. Setting the Hide Field to By default, Hide Component is set to ☐ (unchecked). |
Hide Title | Setting the Hide Title toggle to By default, Hide Title is set to |
Customize Add Row Button | When set to By default, Customize Add Row Button is set to |
Button Label Text | The Button's Label Text tells your end-user what the button does before they click it. This text shows in the button itself. By default, the Button Label Text is Add Row. |
Button Style | Sets the visual appearance of the button. Options include: |
Custom CSS Class | Enter a Custom CSS Class to apply to the Add Row button. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Left/Right Icon | Use these fields to add icons (glyphs) to the left or right of your Button's Label Text. For example, entering glyphicon glyphicon-pencil adds an icon of a pencil to your Button.
|
Data Panel
Setting | Description |
---|---|
Data Reference Key | The Data Reference Key setting lets you use the Dynamic Grid component to display data owned by another component. The referenced component is the sole source and owner of the data. So, your end-user can't edit this data, even if Editable is selected in the Column Setup table. To import data using a Data Reference Key, enter the Property ID of the component that you're pulling data from.
|
Column Setup
This is where you create your grid. Each new row in the Column Setup table becomes a column in your grid in Express View. Click Add Column to add a new row to the Column Setup table.
The top-to-bottom order of rows in your Column Setup table reflects the left-to-right order of columns in your grid in Express View.
After adding a column, click the Edit button to see the following options:
Setting | Description |
---|---|
Header Label | Enter a label for the column's header in Express View. For the Button column type, the Header Label also acts as the button label. |
Property ID* | Enter a Property ID to associate with the column's data. This Property ID is functionally similar to a component's Property ID. For example, you can reference a column's Property ID to target that column in logic-based configurations. When inline editing is enabled, values entered in the column in Express View store under this Property ID (key) in the submission data. Property IDs use camel case (stylized as camelCase) without spaces or punctuation. You can use the same column Property IDs between different Dynamic Grid components. For instance, you can have columnA and columnB in two different Dynamic Grid components without affecting functionality. *The Property ID field is required.
|
Type | Select a column type. This selection restricts the type of data your end-user can input, or the type of interaction they can have. The column type options include the following:
A column type is required. You can only select one type option per column.
|
Editable | When set to Select the Editable checkbox in the column header to set all columns of the grid as editable. Or, use the Editable checkbox in each row to selectively set that column of the grid as editable.
|
Store Data | When set to (checked), values entered in this column in Express View store to the database. Select the Store Data checkbox in the column header to set all columns of the grid to store to the database. Or, use the Store Data checkbox in each row to selectively store data from that column of the grid.
|
Hidden | When set to (checked), the column is hidden from view in Express View. Select the Hidden checkbox in the column header to set all columns of the grid as hidden. Or, select the Hidden checkbox in each row to selectively set that column of the grid as hidden. |
Type | Choose the column type. Available column types include the following:
|
Column Type Configuration Windows
Each column type option in the Column Setup table has a unique configuration window. From there, you can control column-specific display, data, action, and validation settings.
To access the column type configuration window, click the (Column Settings) button in the Column Setup table. To exit the column type configuration window, click Back to Table.
Click on a column type in the list below to see its individual settings:
Text Field Column Type
The Text Field column type lets your end-user input short text values. Values store as strings.
Display Settings
Global Behavior Group
Setting | Description |
---|---|
Allow For Text Wrapping | When set to
|
Freeze Columns To Left Or Right Of The Grid
Setting | Description |
---|---|
Freeze Column | When |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Columns
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Settings
Triggers
Setting |
Description |
---|---|
Add |
Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... |
Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... |
Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear |
Removes all triggers. |
Validations Settings
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required setting is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Allowed Characters for Column Values Group
Setting | Description |
---|---|
Set Minimum | Sets the minimum number of characters that an end-user must enter for valid input. |
Minimum Length Error Message | A custom error message that displays when the entry doesn't meet the minimum character length rule. |
Set Maximum | Sets the maximum number of characters that an end-user must enter for valid input. |
Maximum Length Error Message | A custom error message that displays when the entry doesn't meet the maximum character length rule. |
Number Column Type
The Number column type lets your end-user input numbers, including integers and decimals. Entered values store as numbers.
Display Settings
Freeze Columns To Left Or Right Of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Columns
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Format | Select how to format values in Express View. Options include:
|
Decimal Places | Enter the number of decimal places to show in Express View. Values of 13 digits or more round to the number of decimal places specified.
|
Show Thousands Separator | Set whether to show a thousands separator. The default thousands separator is a comma. When set to (checked), a thousands separator shows. By default, the Show Thousands Separator toggle is set to ☐ (unchecked).
|
Headers
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Settings
Triggers
Setting | Description |
---|---|
Add | Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear | Removes all triggers. |
Validations Settings
Column Values Required
Setting | Description |
---|---|
Required | When set to (checked), the end-user must enter a value in the column before navigating ahead or saving the module. Set to ☐ (unchecked) when an entry is optional. By default, the Required setting is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Allowed Characters for Column Values
Setting | Description |
---|---|
Set Minimum | Sets the minimum value that an end-user must enter for valid input. |
Minimum Error Message | A custom error message that displays when the entry doesn't meet the minimum value rule. |
Set Maximum | Sets the maximum value that an end-user must enter for valid input. |
Maximum Error Message | A custom error message that displays when the entry doesn't meet the maximum value rule. |
Checkbox Column Type
The Checkbox column type adds a single checkbox to each row of the grid. In Express View, checking the box changes the Boolean value from false to true.
Display Settings
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Columns
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Settings
Setting | Description |
---|---|
Column is Checked by Default | When set to (checked), the checkbox is selected by default in Express View. |
Actions Settings
Triggers
Setting | Description |
---|---|
Add | Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear | Removes all triggers. |
Validation Panel
Column Value Required
Setting | Description |
---|---|
Required | When set to (checked), the end-user must select the checkbox (value of true) for the cell to be valid. When set to ☐ (unchecked), the cell is valid whether selected or not (value of true or false is valid). By default, the Required toggle is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Single-Select Dropdown Column Type
The Single-Select Dropdown column type adds a drop-down to each row of the grid. Your end-user can select one value from the drop-down. The selected value stores as a string.
Display Settings
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Settings
Use the data panel to populate the drop-down's values.
Source Type
There are two different methods that you can use to populate your Single-Select Dropdown: Values or Data Reference Key.
Values
Values is the simplest way to populate the Single-Select Dropdown. Selecting Values shows a table where you can enter each option label along with its value to store.
Setting | Description |
---|---|
Label | Each option needs an end-user-facing label describing the choice that it represents. Enter your Option Labels using this column. After you create an option, another row displays for you to create the next option. |
Value | Each option needs an associated value to store in the . Enter the values to store in submission data using this column. By default, the value is a camel case version of the Option Label. You can also assign a numeric value to each option for use in logic-based configurations. |
Data Reference Key
With Data Reference Key, you can use data from another component to fill your Single-Select Dropdown. You'll most often do this with a Data Table component. You'll add your option values and labels to separate columns of the Data Table then reference the Data Table's Property ID in the Data Reference Key setting.
Setting | Description |
---|---|
Data Reference Key | Enter the Property ID of the component whose data you're referencing. |
Value Property | Enter the key under which the option values are stored. If you're pulling from a Data Table component, enter the header of the values column in this field. |
Label Property | Enter the key under which the option labels are stored. If you're pulling from a Data Table component, enter the header of the labels column in this field. |
Actions Settings
Setting | Description |
---|---|
Add | Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear | Removes all triggers. |
Validation Settings
Column Value Required
Setting | Description |
---|---|
Required | When set to (checked), the end-user must enter a value in the column before navigating ahead or saving the module. Set to ☐ (unchecked) when an entry is optional. By default, the Required setting is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Multi-Select Dropdown Column Type
The Multi-Select Dropdown column type adds a drop-down to each row of the grid. Your end-user can select one or many values from the drop-down. The selected value(s) store as an array of string values.
Display Settings
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Columns
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Settings
Source Type
There are two different methods that you can use to populate your Multi-Select Dropdown: Values or Data Reference Key.
Values
Values is the simplest way to populate the Multi-Select Dropdown. Selecting Values shows a table where you can enter each option label along with its value to store.
Setting | Description |
---|---|
Option Label | Each option needs an end-user-facing label describing the choice that it represents. Enter your Option Labels using this column. After you create an option, another row displays for you to create the next option. |
Data Source Value | Each option needs an associated value to store in the . Enter the values to store in submission data using this column. By default, the value is a camel case version of the Option Label. You can also assign a numeric value to each option for use in logic-based configurations. |
Data Reference Key
With Data Reference Key, you can use data from another component to fill your Multi-Select Dropdown. You'll most often do this with a Data Table component. You'll add your option values and labels to separate columns of the Data Table then reference the Data Table's Property ID in the Data Reference Key setting.
Setting | Description |
---|---|
Data Reference Key | Enter the Property ID of the component whose data you're referencing. |
Value Property | Enter the key under which the option values are stored. If you're pulling from a Data Table component, enter the header of the values column in this field. |
Label Property | Enter the key under which the option labels are stored. If you're pulling from a Data Table component, enter the header of the labels column in this field. |
Actions Settings
Setting | Description |
---|---|
Add | Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear | Removes all triggers. |
Validation Settings
Column Values Required Group
Setting | Description |
---|---|
Required | When set to (checked), the end-user must enter a value in the column before navigating ahead or saving the module. Set to ☐ (unchecked) when an entry is optional. By default, the Required setting is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Button Column Type
The Button column type adds a clickable button to each row of the grid. You can configure actions to occur on button-click, including deleting the row or triggering other components. No values store to the submission data for the Button column type.
Display Settings
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Disable Button | Enables or disables all Buttons in the column. Setting the Disable Button to (checked) disables the column's buttons in Express View. The buttons remain visible but you can't click them. Setting it to ☐ (unchecked) enables the buttons. By default, Disable Button is set to ☐ (unchecked). The Disable Button setting affects all buttons in the column. To disable individual buttons, you can target individual cells using logic expressions. View our Dynamic Grid: Targeted Logic and Referencing Syntax article to learn more.
|
Hide Buttons | Shows or hides the Button from view. Setting Hide Buttons to (checked) hides the Button in Express View. The column remains visible but empty in Express View. Setting it to ☐ (unchecked) makes the Button visible. By default, the Hide Buttons toggle is set to ☐ (unchecked).
|
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Settings
Setting | Description |
---|---|
Button Style | Sets the visual appearance of the button. Options include: Primary, Secondary, Success, Danger, Warning, Info, Light, Dark, and Link. The Button Style only affects the Button component's appearance and does not effect its function. |
When Button is Clicked | Select an action to trigger on button-click. The drop-down's options are:
|
Date Column Type
The Date column type adds a field where your end-user can enter or select a date. You can add a Calendar View to the field, which enables a date picker. Entered or selected values store as a formatted string.
By default, dates store in ISO 8601 format, and include a timestamp of 00:00:00.000Z UTC (Coordinated Universal Time).
Display Settings
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When (checked), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Date Format | Use this setting to change the format of the Placeholder Text or any dates selected in Calendar View. Possible values are m, d, y, and Y (use each value only once). For example, Ydm, ymd, or mY. Entering ymd results in a date format of YY/MM/DD. Entering Ymd results in a date format of YYYY/MM/DD.
|
Field Delimiter | Delimiters show the breaks between the month, day, and year in a date. Common delimiters include a period (.), slash (/), or hyphen (-). By default, the Field Delimiter is set to /.
|
Disable Automated Input Formatting | WHen (checked) to remove input formatting in Express View. By default, this setting is set to ☐ (unchecked). |
Enable Calendar View | When (checked), Date column cells show a calendar icon. When clicked, the date picker widget opens, letting the end-user pick a date in calendar view. By default, the Enable Calendar View toggle is set to (checked). |
Display (+/-) Years in Dropdown | Sets the maximum number of years available in the date picker widget.
|
Open Datepicker Automatically When Editing | When selected, the date picker widget automatically shows when the end-user selects a Date column cell to edit. When not selected, the end-user must click the calendar icon to open the date picker. By default, the Open Datepicker Automatically When Editing checkbox is not selected. |
Display Years in Dropdown | Set the amount of years to display when the Datepicker drop-down displays. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Settings
Setting | Description |
---|---|
Store Date Only | Unqork stores all dates in ISO8601 format with or without the timestamp based on the Store Date Only setting. That means dates should always be passed in using logic components as either YYYY-MM-DDThh:mm:ss.sssZ or YYYY-MM-DD. When (checked), the system only stores the selected date. By default, Store Date Only is set to ☐ (unchecked). |
Actions Settings
Setting | Description |
---|---|
Add | Click to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Clear | Removes all triggers. |
Validations Settings
Valid Date
Setting | Description |
---|---|
Error Message | Displays as a custom error message when the end-user enters an invalid date. |
Column Required
Setting | Description |
---|---|
Required | When set to (checked), the end-user must enter a value in the column before navigating ahead or saving the module. Set to ☐ (unchecked) when an entry is optional. By default, the Required setting is set to ☐ (unchecked). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Valid Date Range for Column Values
Setting | Description |
---|---|
Restricted To | Restrict the range of acceptable dates your end-user can input. Available date restrictions include:
|
From | The From field shows on selection of the Between Dates date restriction. Using the radio buttons you can apply more restrictions (Exact Date, Relative Date, Now) to the start of your date range.
|
To | The To field shows on selection of the Between Dates date restriction. Using the radio buttons you can apply more restrictions (Exact Date, Relative Date, Now) to the start of your date range.
|
Minimum Date | Shows on selection of the Between Dates date restriction. Set a minimum valid date. |
Minimum Error Message | Shows on selection of the Between Dates date restriction. Set a custom error message here that displays when the end-user sets a non-compliant date. |
Maximum Date | Shows on selection of the Future Only, Past, Before a Date, After a Date, or Between Dates date restrictions. Set a maximum valid date. |
Maximum Error Message | Shows on selection of the Future Only, Past, Before a Date, After a Date, or Between Dates date restrictions. Set a custom error message here, that displays when the end-user sets a non-compliant date. |
Row Grouping
Group Rows
Setting | Description |
---|---|
Add | Click to create a new row group. Click Add to create additional row groupings. |
Property ID | Enter the Column Setup Property ID to group by. |
Sort Direction | Select a sort order for your row grouping. The drop-down options are:
|
... | If there is more than one Group Row, organize the sort order. Click this button to reveal the following options:
|
Clear | Removes all group rows from the configuration. |
Organize Row Groups Into | The options in the drop-down include:
|
Show Original Row Grouped Columns | When set to (checked), row-grouped columns also show in the grid without any grouping applied. So, in addition to column data showing under the row-grouping column, the original column also shows in the grid. When set to ☐ (unchecked), row-grouped columns only show under the row-grouping column(s), as determined by the Organize Row Groups Into setting. |
Expand Grouping
Setting | Description |
---|---|
Expand Group Rows Automatically | When set to (checked), displays group rows on page refresh. By default, this setting is set to ☐ (unchecked). |
Actions Panel
Triggers
The Dynamic Grid component supports creating multiple triggers directly in the component's configuration window. You can choose from three possible triggering events for each trigger. You can also create several triggers that have the same triggering event.
Setting | Description |
---|---|
Type | Select an action to watch for in order to fire the triggers. All 3 trigger types fire only when an end-user action happens on the grid. So, if a logic component adds a row, the triggers don't fire. Instead, if an end-user clicks the Add Row button, the triggers fire. The drop-down's options are:
|
Target Property ID | Enter the Property ID of the component to trigger when the specified Type action occurs. Click the (Search) icon to display a list of possible Property IDs. |
... | If there is more than one Group Row, organize the sort order. Click this button to reveal the following options:
|
Add | Adds an addition trigger to the bottom of the Triggers list. |
Clear | Removes all triggers from the configuration. |
User Affordances Group
These settings determine how your end-user can interact with the grid and its data in Express View. When enabled, a Side Panel displays at the right of the grid. From the Side Panel, your end-user can use any enabled settings to perform analytic functions. Some interactions are also available from the grid's column headers.
Setting | Description |
---|---|
Allow User to Group Rows | When (checked), your end-user can group all data-based column types. This excludes the Button column type. Row grouping automatically groups data based on shared values and can be nested many times.
By default, setting is ☐ (unchecked). |
Allow User to Aggregate & Pivot Across All Columns | When (checked), your end-user can perform aggregation and pivoting functions. When enabled, the Pivot Mode toggle shows in the Side Panel. Aggregation lets your end-user apply pre-defined functions to values. In order to see aggregated values, a row group must be applied or the Pivot Mode toggle must be (checked). The available aggregation actions vary by column type. For example:
Pivoting allows data to be extrapolated across another axis (Y-axis). Your end-user can pivot all data-based column types. This excludes the Button column type. To use Pivot Mode, the Pivot Mode toggle in the grid's Side Panel must be (checked). Enabling Pivot Mode temporarily hides tabular data, similar to creating a new Pivot Table instance in Excel.
|
Allow User to Sort by Column | When (checked), end-users can sort column values. Clicking a column's header in the grid sorts the column's values in ascending order. Clicking the column's header again sorts the column's values in descending order. Clicking the column's header again removes the sort order. When sorted in ascending order, an ↑ (Upwards Arrow) icon shows in the column's header. When sorted in descending order, a ↓ (Downwards Arrow) icon shows in the column's header. By default, setting is ☐ (unchecked). |
Allow Multi-Column Sorting | When (checked), end-users can sort by multiple columns at the same time. Press and hold the Shift key when selecting additional column headers. Press and hold the Shift key when clicking a header to change the sort order. By default, setting is ☐ (unchecked). |
Allow User to Filter Columns | When (checked), end-users can filter column values. Each column header in the grid shows a (Hamburger) icon. When clicked, a column-specific Filter menu opens. The available filtering actions vary by column type. For example:
By default, this setting is (checked). |
Show Filter Panel | When selected, a Filter panel shows in the Side Panel. From the Side Panel, your end-user can apply column-specific filters. The available filtering actions vary by column type. By default, the Show Filter Panel checkbox is not selected. |
Allow User to Rearrange Rows | When (checked), end-users can rearrange rows in the grid.
By default, setting is ☐ (unchecked). |
Invoking Cell Edit State | Select how many times the end-user must click an editable cell in order to edit the cell. There are two options:
|
Validations Settings
Required Group
Setting | Description |
---|---|
Require Minimum Valid Rows | When (checked), the end-user must enter at least one valid row in the grid before navigating ahead or saving the module. Set to ☐ (unchecked) when an entry is optional.
By default, Require Minimum Valid Rows is set to ☐ (unchecked). |
Error Message | A custom error message that displays below a required field. The error message displays when the end-user tries to save or submit the module without completing the required field. |
Set Number of Allowed Rows Group
Setting | Description |
---|---|
Set Minimum | Sets the minimum number of allowed rows in the grid. |
Minimum Error Message | An error message that displays when the grid doesn't meet the minimum number of rows set. |
Set Maximum | Sets the maximum number of allowed rows in the grid. |
Maximum Error Message | An error message that displays when the grid exceeds the maximum number of rows set. |
Notes on Validation
The Dynamic Grid component supports setting validation rules at several levels of the component. In addition to setting validation rules in the main configuration window and column type configuration windows, you can also use logic to set cell or row-level validation. For example, setting minimum or maximum number validation rules in specific rows of the grid. When editing a Dynamic Grid in Express View, visual cues and error messages highlight validation errors at all levels. When using server-side execution to inject data into a Dynamic Grid, though, you'll rely on the validationErrors array to identify errors. You can't display validationErrors in the front-end.
The Dynamic Grid component supports all standard server-side execution actions.
The validationErrors array for a Dynamic Grid component has a different structure compared to some other components.
Here's a basic overview of the structure:
Component-level validation errors follow the standard server-side execution validationErrors schema.
Cell-level and column-level validation errors are summarized by column. Column-specific errors have their own object in the validationErrors array, separate from component-level errors.
In each column-specific object of the validationErrors array is a failedValidations array. The failedValidations array summarizes errors in the column, by type. For example, minLength or required validation errors. Each group of type-specific errors has its own object in the array.
Each type-specific error object lists cell-level and column-level errors separately, as a celllevel errors array or columnlevel errors object.
The celllevel errors array contains one object per row of the column. This lets you know the exact column/row coordinates of the failed validation.
The columnlevel errors object lists all affected rows in the rows array. This again lets you know the exact column/row coordinates.
Error messages are also visible.
The following code snippet shows a sample validationErrors array, from a server-side-executed Dynamic Grid component. The array shows component-level and cell-level validation errors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 "validationErrors": [ { "id": "dynamicGrid", "path": "data.dynamicGrid", "label": "dynamicGrid", "parent": "data", "message": "dynamicGrid is required" }, { "id": "dynamicGrid", "path": "data.dynamicGrid", "label": "dynamicGrid", "parent": "data", "message": "dynamicGrid must contain no more than 5 items" }, { "id": "dynamicGrid.fullName", "path": "data.dynamicGrid.fullName", "label": "Full Name", "parent": "data.dynamicGrid", "failedValidations": [ { "type": "minLength", "columnlevel": { "rows": [0, 1, 3], "message": "Full Name must be no less than 5 characters" } }, { "type": "required", "columnlevel": { "rows": [2, 5, 6], "message": "Full Name is required" } } ] }, { "id": "dynamicGrid.employeeNumber", "path": "data.dynamicGrid.employeeNumber", "label": "Employee Number", "parent": "data.dynamicGrid", "failedValidations": [ { "type": "min", "cellLevel": [ { "row": 0, "message": "Employee Number must be greater than or equal to 1" }, { "row": 1, "message": "Employee Number must be greater than or equal to 2" } ], "columnlevel": { "rows": [2, 3], "message": "Employee Number must be greater than or equal to 100" } }, { "type": "max", "columnlevel": { "rows": [4, 5, 6], "message": "Employee Number must be less than or equal to 999" } } ]}]
The Dynamic Grid component also includes built-in data type validations. These validations help ensure data in a given column type matches its intended data types. These validations don't prevent you from saving your module but help detect incorrect data types. The following error messages display for each Column Type when the data types are incorrect:
Text Field: No error messages display for the Text Field Column Type.
Number: Any value that isn't a number displays a Not a Number error message.
Single-select Dropdown: If you inject a value from a logic component that doesn't match the column’s Data Source Value or Value Property displays an Invalid Option error message.
Multi-select Dropdown: Any values that don't match the column’s Data Source Value or Value Property display an Invalid Option error message.
Date: Any value that isn't formatted as YYYY-MM-DDT00:00:00.000Z or YYYY-MM-DD displays a Not a Date error message.
The Date Column Type, like the Date Input component, has a Valid Date validation that often overrides this error for end-users anyway.
Checkbox: Any value that is not a true or false Boolean value displays a Not a Boolean error message.
Button: No error messages display for the Button Column Type.
Overview
The Dynamic Grid component combines the ease and usability of a spreadsheet with the power and flexibility of an Unqork grid component. In Express View, your end-user gets a streamlined, spreadsheet-like data entry and exploration experience. Built with large-scale data sets in mind, use a Dynamic Grid to focus on supporting high-performance data consumption, analysis, and exploration use cases. Dynamic Grid also includes features like pivot mode, data aggregation and grouping, and more.
You have various options for populating your Dynamic Grid component:
Inline editing and data entry in Express View.
Using a logic component to output data to the Dynamic Grid component. For example, using a Plug-In component to retrieve data from a reference Data Collection. Then, using a Data Workflow component to output the data to the Dynamic Grid component.
Importing data from another component, like a Data Table component, using the Data Reference Key option. The grid (the Dynamic Grid component's front-end) populates with the data stored under the Data Reference Key. It's important to note that, in this case, the grid is read-only.
Whenever data entry takes place, ensuring the integrity of your data is important. That's why the Dynamic Grid component provides a strong validation framework. When configuring your Dynamic Grid, you’ll assign each column a column type. For example, Number, Text Field, or Checkbox. Having defined column types means your end-user can only enter values that match your data model. You can also set column-specific validation rules for even greater control.
You'll find the Dynamic Grid component under the Display & Layout group at the left of the Module Builder.
You have various options for populating your Dynamic Grid component:
Inline editing and data entry in Express View.
Using a logic component to output data to the Dynamic Grid component. For example, using a Plug-In component to retrieve data from a reference Data Collection. Then, using a Data Workflow component to output the data to the Dynamic Grid component.
Importing data from another component, like a Data Table component, using the Data Reference Key option. The grid (the Dynamic Grid component's front-end) populates with the data stored under the Data Reference Key. It's important to note that, in this case, the grid is read-only.
You'll find the Dynamic Grid component under the Display & Layout group at the left of the Module Builder.
About the Configuration Window
To learn more about general component settings, view our General Component Settings article.
Display Panel
Setting | Description |
---|---|
Title | The heading of the grid. The end-user sees this title at the top of the grid in Express View.
|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. The tooltip displays next to the title. |
Helper Text | A quick tip describing the expected inputs or how to use the grid. The Helper Text displays below the Dynamic Grid component's title in Express View. |
Custom CSS Class | Enter a Custom CSS Class to apply to your component. Custom CSS lets you maintain a consistent look and feel when the field or element is part of a template or multiple modules. Updated CSS styling applies to all components that reference this custom class name. |
Grid Height | Select how to set the maximum height of the grid. The options are:
|
Set Grid Height To | Set the height of your grid. The unit depends on your Grid Height setting selection.
|
Hide Component | Displays or hides the component from view. Setting Hide Field to By default, Hide Field is set to |
Hide Title | Setting the Hide Title toggle to By default, Hide Title is set to |
Customize 'Add Row' Button | When set to By default, the Customize 'Add Row' Button toggle is set to |
Button Label Text | The Button's Label Text tells your end-user what the button does before they click it. This text shows in the button itself. By default, the Button Label Text is Add Row. |
Button Style | Sets the visual appearance of the button. Options include: |
Custom CSS Class | Enter a Custom CSS Class to apply to the Add Row button. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Left/Right Icon | Use these fields to add icons (glyphs) to the left or right of your Button's Label Text. For example, entering glyphicon glyphicon-pencil adds an icon of a pencil to your Button.
|
Data Panel
Setting | Description |
---|---|
Data Reference Key | The Data Reference Key setting lets you use the Dynamic Grid component to display data owned by another component. The referenced component is the sole source and owner of the data. So, your end-user can't edit this data, even if Editable is selected in the Column Setup table. To import data using a Data Reference Key, enter the Property ID of the component that you're pulling data from.
|
Column Setup Table
This is where you create your grid. Each new row in the Column Setup table becomes a column in your grid in Express View. Click +Add New Column to add a new row to the Column Setup table.
The top-to-bottom order of rows in your Column Setup table reflects the left-to-right order of columns in your grid in Express View.
You can easily rearrange the order of rows in your Column Setup table. Click and drag the (Grip) icon found at the left of each row in the Column Setup table.
Setting | Description |
---|---|
Header Label | Enter a label for the column's header in Express View. For the Button column type, the Header Label also acts as the button label. |
Property ID | Enter a Property ID to associate with the column's data. This Property ID is functionally similar to a component's Property ID. For example, you can reference a column's Property ID to target that column in logic-based configurations. When inline editing is enabled, values entered in the column in Express View store under this Property ID (key) in the submission data. Property IDs use camel case (stylized as camelCase) without spaces or punctuation. You can use the same column Property IDs between different Dynamic Grid components. For instance, you can have columnA and columnB in two different Dynamic Grid components without affecting functionality. The Property ID field is required.
|
Column Type | Select a column type. This selection restricts the type of data your end-user can input, or the type of interaction they can have. The column type options are:
A column type is required and you can only select one type option per column.
|
Editable | When selected, end-users can edit cells in this column in Express View. Use this setting to enable inline editing and data entry. Select the Editable checkbox in the column header to set all columns of the grid as editable. Or, use the Editable checkbox in each row to selectively set that column of the grid as editable.
|
Store Data | When selected, values entered in this column in Express View store to the database. Select the Store Data checkbox in the column header to set all columns of the grid to store to the database. Or, use the Store Data checkbox in each row to selectively store data from that column of the grid.
|
Hidden | When selected, the column is hidden from view in Express View. Select the Hidden checkbox in the column header to set all columns of the grid as hidden. Or, select the Hidden checkbox in each row to selectively set that column of the grid as hidden. |
(Column Settings Button) | Shows in the actions column in each row of the Column Setup table. When clicked, opens the selected row's column type-specific configuration window. |
(Delete Button) | Shows on hover-over of the actions column in each row of the Column Setup table. When clicked,deletes the selected row and its column. |
Arrange Data Group
The Arrange Data settings let you preemptively apply row groupings to your grid. To let your end-user choose whether to apply row groupings, use the User Affordances settings.
Setting | Description |
---|---|
Set Column Widths | Manually set the width for individual columns. When set to |
(Set Column Width Settings Button) | Opens the Set column widths configuration panel. When set to
|
+ Add Column to Group By | Click to create a new row group. Click + Group By Another Column to create additional row groupings.
|
Column Drop-down | Select a column to group rows by. The column must exist in the Column Setup table to show in the drop-down list.
|
Sort Order Drop-down | Select a sort order for your row grouping. The drop-down options are:
|
Organize Row Groups Into | The options include:
|
Repeat Row Grouped Value in Each Row | Visible when Organize Row Groups Into is set to Single Column or Multi-Column. When selected, the row-grouped value shows in each row of the row grouping. So, when expanding a row grouping, each row in the grouping still shows the value shared between each row. When not selected, the cell is blank. The shared value only displays in the top-level grouping. |
Show Original Row Grouped Columns | When selected, row-grouped columns also show in the grid without any grouping applied. So, in addition to column data showing under the row-grouping column, the original column also shows in the grid. When not selected, row-grouped columns only show under the row-grouping column(s), as determined by the Organize Row Groups Into setting. |
Column Type Configuration Windows
Each column type option in the Column Setup table has a unique configuration window. From there, you can control column-specific display, data, action, and validation settings.
To access the column type configuration window, click the (Column Settings) button in the Column Setup table. To exit the column type configuration window, click Back to Table.
Click a column type heading below to expand the drop-down and show the configuration window description.
Text Field Column Type
The Text Field column type lets your end-user input short text values. Values store as strings.
Display Settings
Global Behavior Group
Setting | Description |
---|---|
Allow Text Wrapping | When set to (ON), text in a column wraps to the next line below if the text exceeds column header length. If Set column widths is set to (ON), headers and text wrap to the next line after reaching a column's specified unit length.
|
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to (ON), displays the Column placement setting. Freezing a column moves the column's visible location to the edge of the grid and remains visible when scrolling horizontally. |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required toggle is set to |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Allowed Characters for Column Values Group
Setting | Description |
---|---|
Set Minimum | Sets the minimum number of characters that an end-user must enter for valid input. |
Minimum Length Error Message | A custom error message that displays when the entry doesn't meet the minimum character length rule. |
Set Maximum | Sets the maximum number of characters that an end-user must enter for valid input. |
Maximum Length Error Message | A custom error message that displays when the entry doesn't meet the maximum character length rule. |
Number Column Type
The Number column type lets your end-user input numbers, including integers and decimals. Entered values store as numbers.
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Format As | Select how to format values in Express View. Your options are:
|
Decimal Places | Enter the number of decimal places to show in Express View. Values of 13 digits or more round to the number of decimal places specified.
|
Show Thousands Separator | Set whether to show a thousands separator. The default thousands separator is a comma. When set to By default, the Show Thousands Separator toggle is set to
|
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Column Values Required Group
Setting | Description |
---|---|
Required | When set to (ON), the end-user must enter a value in the column before navigating ahead or saving the module. Set the toggle to (OFF) when an entry is optional. By default, the Required toggle is set to (OFF). |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Valid Number Range for Column Values Group
Setting | Description |
---|---|
Set Minimum | Sets the minimum value that an end-user must enter for valid input. |
Minimum Error Message | A custom error message that displays when the entry doesn't meet the minimum value rule. |
Set Maximum | Sets the maximum value that an end-user must enter for valid input. |
Maximum Error Message | A custom error message that displays when the entry doesn't meet the maximum value rule. |
Checkbox Column Type
The Checkbox column type adds a single checkbox to each row of the grid. When selected, the Boolean value true stores. When clear, the Boolean value false stores.
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Panel
Setting | Description |
---|---|
Column is Checked by Default | When selected, the checkbox is selected by default in Express View. |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's only option is:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required toggle is set to |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Single-select Dropdown Column Type
The Single-select Dropdown column type adds a drop-down to each row of the grid. Your end-user can select one value from the drop-down. The selected value stores as a string.
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Panel
There are two different methods that you can use to populate your Single-select Dropdown: Values or Data Reference Key.
Values
Values is the simplest way to populate the Single-select Dropdown. Selecting Values shows a table where you can enter each option label along with its value to store.
Setting | Description |
---|---|
Option Label | Each option needs an end-user-facing label describing the choice that it represents. Enter your Option Labels using this column. After you create an option, another row displays for you to create the next option. |
Data Source Value | Each option needs an associated value to store in the submission data. Enter the values to store in submission data using this column. By default, the value is a camel case version of the Option Label. You can also assign a numeric value to each option for use in logic-based configurations. |
Data Reference Key
With Data Reference Key, you can use data from another component to fill your Single-select Dropdown. You'll most often do this with a Data Table component. You'll add your option values and labels to separate columns of the Data Table then reference the Data Table's Property ID in the Data Reference Key setting.
Setting | Description |
---|---|
Data Reference Key | Enter the Property ID of the component whose data you're referencing. |
Value Property | Enter the key under which the option values are stored. If you're pulling from a Data Table component, enter the header of the values column in this field. |
Label Property | Enter the key under which the option labels are stored. If you're pulling from a Data Table component, enter the header of the labels column in this field. |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required toggle is set to |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Multi-select Dropdown Column Type
The Multi-select Dropdown column type adds a drop-down to each row of the grid. Your end-user can select one or many values from the drop-down. The selected value(s) store as an array of string values.
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Panel
There are two different methods that you can use to populate your Multi-select Dropdown: Values or Data Reference Key.
Values
Values is the simplest way to populate the Multi-select Dropdown. Selecting Values shows a table where you can enter each option label along with its value to store.
Setting | Description |
---|---|
Option Label | Each option needs an end-user-facing label describing the choice that it represents. Enter your Option Labels using this column. After you create an option, another row displays for you to create the next option. |
Data Source Value | Each option needs an associated value to store in the submission data. Enter the values to store in submission data using this column. By default, the value is a camel case version of the Option Label. You can also assign a numeric value to each option for use in logic-based configurations. |
Data Reference Key
With Data Reference Key, you can use data from another component to fill your Multi-select Dropdown. You'll most often do this with a Data Table component. You'll add your option values and labels to separate columns of the Data Table then reference the Data Table's Property ID in the Data Reference Key setting.
Setting | Description |
---|---|
Data Reference Key | Enter the Property ID of the component whose data you're referencing. |
Value Property | Enter the key under which the option values are stored. If you're pulling from a Data Table component, enter the header of the values column in this field. |
Label Property | Enter the key under which the option labels are stored. If you're pulling from a Data Table component, enter the header of the labels column in this field. |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's only option is:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required toggle is set to |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Button Column Type
The Button column type adds a clickable button to each row of the grid. You can configure actions to occur on button-click, including deleting the row or triggering other components. No values store to the submission data for the Button column type.
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Disable Buttons | Enables or disables all Buttons in the column. Setting the Disable Buttons toggle to By default, the Disable Buttons toggle is set to
|
Hide Buttons | Shows or hides the Button from view. Setting the Hide Buttons toggle to By default, the Hide Buttons toggle is set to
|
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Actions Panel
Setting | Description |
---|---|
Button Style | Sets the visual appearance of the button. Options include: Primary, Secondary, Success, Danger, Warning, Info, Light, Dark, and Link. The Button Style only affects the Button component's appearance and does not effect its function. |
When... | Lets you create if/then rules to trigger actions on button-click. |
Then... | Select an action to occur on button-click. The drop-down's options are:
|
Date Column Type
The Date column type adds a field where your end-user can enter or select a date. You can add a Calendar View to the field, which enables a date picker. Entered or selected values store as a formatted string.
By default, dates store in ISO 8601 format, and include a timestamp of 00:00:00.000Z UTC (Coordinated Universal Time).
Display Panel
Freeze Columns to Left or Right of The Grid
Setting | Description |
---|---|
Freeze Column | When set to |
Column Placement | Select which side of the grid to pin the column against. Frozen, grouped columns remain in place while other columns scroll around them. Options include the following:
|
Column Group
Setting | Description |
---|---|
Custom CSS Class | Enter a Custom CSS Class to apply to the column's cells. When you update the CSS styling, it applies to all elements that reference this custom class name. |
Date Format | Use this setting to change the format of the Placeholder Text or any dates selected in Calendar View. Possible values are m, d, y, and Y (use each value only once). For example, Ydm, ymd, or mY. Entering ymd results in a date format of YY/MM/DD. Entering Ymd results in a date format of YYYY/MM/DD.
|
Field Delimiter | Delimiters show the breaks between the month, day, and year in a date. Common delimiters include a period (.), slash (/), or hyphen (-). By default, the Field Delimiter is set to /.
|
Enable Calendar View | When set to By default, the Enable Calendar View toggle is set to (ON). |
Open Datepicker Automatically When Editing | When selected, the date picker widget automatically shows when the end-user selects a Date column cell to edit. When not selected, the end-user must click the calendar icon to open the date picker. By default, the Open Datepicker Automatically When Editing checkbox is not selected. |
Display (+/-) Years in Dropdown | Sets the maximum number of years available in the date picker widget.
|
Header Group
Setting | Description |
---|---|
Tooltip | A short hint that displays when an end-user positions their cursor over the (Tooltip) icon. Tooltips can display across more than one line. |
Custom CSS Class | Enter a Custom CSS Class to apply to the column's header. When you update the CSS styling, it's applied to all elements that reference this custom class name. |
Data Panel
Setting | Description |
---|---|
Store Date Only | Unqork stores all dates in ISO8601 format with or without the timestamp based on the Store Date Only setting. That way, dates are always passed as either YYYY-MM-DDThh:mm:ss.sssZ or YYYY-MM-DD when using logic components. When set to By default, Store Date Only is set to |
Actions Panel
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to wait for in order to fire the trigger. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
Validation Panel
Valid Date Group
Setting | Description |
---|---|
Error Message | Displays as a custom error message when the end-user enters an invalid date. |
Column Values Required Group
Setting | Description |
---|---|
Required | When set to By default, the Required toggle is set to |
Error Message | Displays as a custom error message when the end-user doesn't enter a value under a required column. |
Valid Date Range for Column Values Group
Setting | Description |
---|---|
Restrict To | Restrict the range of acceptable dates your end-user can input. Available date restrictions include:
|
From | The From field shows on selection of the Between Dates date restriction. Using the radio buttons you can apply more restrictions (Exact Date, Relative Date, Now) to the start of your date range.
|
To | The To field shows on selection of the Between Dates date restriction. Using the radio buttons you can apply more restrictions (Exact Date, Relative Date, Now) to the start of your date range.
|
Minimum Date | Shows on selection of the Between Dates date restriction. Set a minimum valid date. |
Minimum Error Message | Shows on selection of the Between Dates date restriction. Set a custom error message here that displays when the end-user sets a non-compliant date. |
Maximum Date | Shows on selection of the Future Only, Past, Before a Date, After a Date, or Between Dates date restrictions. Set a maximum valid date. |
Maximum Error Message | Shows on selection of the Future Only, Past, Before a Date, After a Date, or Between Dates date restrictions. Set a custom error message here, that displays when the end-user sets a non-compliant date. |
Actions Panel
Triggers Group
The Dynamic Grid component supports creating multiple triggers directly in the component's configuration window. You can choose from three possible triggering events for each trigger. You can also create several triggers that have the same triggering event.
Setting | Description |
---|---|
+ Add Trigger | Click + Add Trigger to create a new trigger. Triggers let you create if/then rules to trigger components when a specified action occurs. |
When... | Select an action to watch for in order to fire the triggers. All 3 trigger types fire only when an end-user action happens on the grid. So, if a logic component adds a row, the triggers don't fire. Instead, if an end-user clicks the Add Row button, the triggers fire. The drop-down's options are:
|
Then... | Enter the Property ID of the component to trigger when the specified When... action occurs. |
User Affordances Group
These settings determine how your end-user can interact with the grid and its data in Express View. When enabled, a Side Panel displays at the right of the grid. From the Side Panel, your end-user can use any enabled settings to perform analytic functions. Some interactions are also available from the grid's column headers.
Setting | Description |
---|---|
Allow User to Group Rows | When set to
By default, this toggle is set to |
Allow User to Aggregate & Pivot Across All Columns | When set to Aggregation lets your end-user apply pre-defined functions to values. In order to see aggregated values, a row group must be applied or the Pivot Mode toggle must be set to The available aggregation actions vary by column type. For example:
Pivoting allows data to be extrapolated across another axis (Y-axis). Your end-user can pivot all data-based column types. This excludes the Button column type. To use Pivot Mode, the Pivot Mode toggle in the grid's Side Panel must be set to
|
Allow User to Sort by Column | When set to When sorted in ascending order, an ↑ (Upwards Arrow) icon shows in the column's header. When sorted in descending order, a ↓ (Downwards Arrow) icon shows in the column's header. By default, this toggle is set to |
Allow Multi-Column Sorting | When set to By default, this toggle is set to (OFF). |
Allow User to Filter Columns | When set to The available filtering actions vary by column type. For example:
By default, this toggle is set to |
Show Filter Panel | When selected, a Filter panel shows in the Side Panel. From the Side Panel, your end-user can apply column-specific filters. The available filtering actions vary by column type. By default, the Show Filter Panel checkbox is not selected. |
Allow User to Rearrange Rows | When set to
By default, this toggle is set to |
Invoking Cell Edit State | Select how many times the end-user must click an editable cell in order to edit the cell. There are two options:
|
Validation Panel
Required Group
Setting | Description |
---|---|
Require Minimum Valid Rows | When set to
By default, the Require Minimum Valid Rows toggle is set to |
Error Message | A custom error message that displays below a required field. The error message displays when the end-user tries to save or submit the module without completing the required field. |
Set Number of Allowed Rows Group
Setting | Description |
---|---|
Set Minimum | Sets the minimum number of allowed rows in the grid. |
Minimum Error Message | An error message that displays when the grid doesn't meet the minimum number of rows set. |
Set Maximum | Sets the maximum number of allowed rows in the grid. |
Maximum Error Message | An error message that displays when the grid exceeds the maximum number of rows set. |
Notes on Validation
The Dynamic Grid component supports setting validation rules at several levels of the component. In addition to setting validation rules in the main configuration window and column type configuration windows, you can also use logic to set cell or row-level validation. For example, setting minimum or maximum number validation rules in specific rows of the grid. When editing a Dynamic Grid in Express View, visual cues and error messages highlight validation errors at all levels. When using server-side execution to inject data into a Dynamic Grid, though, you'll rely on the validationErrors
array to identify errors. You can't display validationErrors
in the front-end.
The Dynamic Grid component supports all standard server-side execution actions.
The validationErrors array for a Dynamic Grid component has a different structure compared to some other components.
Here's a basic overview of the structure:
Component-level validation errors follow the standard server-side execution
validationErrors
schema.Cell-level and column-level validation errors are summarized by column. Column-specific errors have their own object in the
validationErrors
array, separate from component-level errors.In each column-specific object of the validationErrors array is a
failedValidations
array. ThefailedValidations
array summarizes errors in the column, by type. For example,minLength
orrequired
validation errors. Each group of type-specific errors has its own object in the array.Each type-specific error object lists cell-level and column-level errors separately, as a
celllevel
errors array orcolumnlevel
errors object.The
celllevel
errors array contains one object per row of the column. This lets you know the exact column/row coordinates of the failed validation.The
columnlevel
errors object lists all affected rows in the rows array. This again lets you know the exact column/row coordinates.Error messages are also visible.
The following code snippet shows a sample validationErrors
array, from a server-side-executed Dynamic Grid component. The array shows component-level and cell-level validation errors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 "validationErrors": [ { "id": "dynamicGrid", "path": "data.dynamicGrid", "label": "dynamicGrid", "parent": "data", "message": "dynamicGrid is required" }, { "id": "dynamicGrid", "path": "data.dynamicGrid", "label": "dynamicGrid", "parent": "data", "message": "dynamicGrid must contain no more than 5 items" }, { "id": "dynamicGrid.fullName", "path": "data.dynamicGrid.fullName", "label": "Full Name", "parent": "data.dynamicGrid", "failedValidations": [ { "type": "minLength", "columnlevel": { "rows": [0, 1, 3], "message": "Full Name must be no less than 5 characters" } }, { "type": "required", "columnlevel": { "rows": [2, 5, 6], "message": "Full Name is required" } } ] }, { "id": "dynamicGrid.employeeNumber", "path": "data.dynamicGrid.employeeNumber", "label": "Employee Number", "parent": "data.dynamicGrid", "failedValidations": [ { "type": "min", "cellLevel": [ { "row": 0, "message": "Employee Number must be greater than or equal to 1" }, { "row": 1, "message": "Employee Number must be greater than or equal to 2" } ], "columnlevel": { "rows": [2, 3], "message": "Employee Number must be greater than or equal to 100" } }, { "type": "max", "columnlevel": { "rows": [4, 5, 6], "message": "Employee Number must be less than or equal to 999" } } ]}]
The Dynamic Grid component also includes built-in data type validations. These validations help ensure data in a given column type matches its intended data types. These validations don't prevent you from saving your module but help detect incorrect data types. The following error messages display for each Column Type when the data types are incorrect:
Text Field: No error messages display for the Text Field Column Type.
Number: Any value that isn't a number displays a Not a Number error message.
Single-select Dropdown: If you inject a value from a logic component that doesn't match the column’s Data Source Value or Value Property displays an Invalid Option error message.
Multi-select Dropdown: Any values that don't match the column’s Data Source Value or Value Property display an Invalid Option error message.
Date: Any value that isn't formatted as YYYY-MM-DDT00:00:00.000Z or YYYY-MM-DD displays a Not a Date error message.
The Date Column Type, like the Date Input component, has a Valid Date validation that often overrides this error for end-users anyway.
Checkbox: Any value that is not a true or false Boolean value displays a Not a Boolean error message.
Button: No error messages display for the Button Column Type.
Adding a Dynamic Grid Component
Let's look at how to set up a Dynamic Grid component that supports inline editing. This simple configuration focuses on supporting basic data entry rather than performing analytics.
Configure the Dynamic Grid Component
For this configuration, you'll add every column type to your Dynamic Grid component. But, you only need to open up the column type configuration window for two of them: the Single-Select Dropdown and Multi-Select Dropdown. For the other column types in your Column Setup table, you can keep the default settings.
Drag and drop a Dynamic Grid component onto your canvas.
In theProperty ID field, enter dynamicGrid.
In the Title field, enter
Tri-State Insurance
.In the Column Setup table, click Add New Column seven times. This adds seven rows to the Column Setup list.
In the Header Label, Property ID, and Column Type fields, ente the following
Complete the Column Setup as follows:
Header Label | Property ID | Editable | Store Data | Column Type |
---|---|---|---|---|
Name | name | (checked)) | (checked) | Text Field |
Annual Income | incomeAnnual | (checked) | (checked) | Number |
Date of Birth | dob | (checked) | (checked) | Date Input |
New Client | newClient | (checked) | (checked) | Single Checkbox |
State | state | (checked) | (checked) | Single-Select Dropdown |
Types of Insurance | insuranceTypes | (checked) | (checked) | Multi-Select Dropdown |
Delete Row | delete | ☐ (unchecked) | ☐ (unchecked) | Button |
Configure the Single-Select Dropdown Column Type
Next, add some values to the Single-Select Dropdown.
In the State row of your Column Setup table, click the (Settings) button. The Single-Select Dropdown column type configuration settings display.
In the Data panel, click Add Value three times and complete the Values settings as follows:
Label
Value
1
New York
NY
2
New Jersey
NJ
3
Connecticut
CT
Click Save. The Column type settings close.
Configure the Multi-Select Dropdown Column Type
Finally, add some values to the Multi-Select Dropdown.
In the Types of Insurance row of your Column Setup table, click the (Settings) button. The Multi-Select Dropdown column type configuration window opens.
In the Data panel, click Add Value five times and complete the Values table as follows:
Option Label
Data Source Value
Health
health
Renters
renters
Auto
auto
Home
home
Life
life
Click Save. The Column type settings close.
Click Save Component.
Save your module.
Now you're ready to preview your module and interact with the grid. Your completed Dynamic Grid component looks like this in Express View:
Structure of a Dynamic Grid Component's Data
Take a moment to understand how data entered in a Dynamic Grid component stores, using the configuration above.
Understanding this structure is also key when importing data into your Dynamic Grid component. Whether using a Data Reference Key or referencing a data collection, the source data's structure must match how the Dynamic Grid component stores data.
Data entered in the Dynamic Grid component stores as an array of objects under a single key. The top-level key is the Dynamic Grid component's Property ID. Each row added to the Dynamic Grid component in Express View becomes a new object in the array of row objects. In each row object, row-specific values store as explicit key/value pairs, where the key is the Property ID associated with that column. Depending on the column type, values store as different data types and data structures. The following image shows an example of how two rows of data entered in a Dynamic Grid component looks in the DevTools Console:
Discover how to reference data from a Dynamic Grid component, view our Dynamic Grid: Targeted Logic and Referencing Syntax article.
Dynamic Grid Interaction Shortcuts
The Dynamic Grid supports several keyboard interactions that make it quick to navigate or edit the grid in Express View.
Grid Navigation
The following shortcuts for navigation are supported:
Using arrow keys to navigate between cells (any direction). It's important to note that the arrow keys only work when you start navigation in a cell that isn't set up with edit mode.
Pressing Tab (navigate right) and Shift + Tab (navigate left) to move between cells.
If actively editing cells, using these shortcuts to navigate between cells doesn't halt the editing state.
Pressing Enter to enter or exit the editing state on an editable cell.
You can also double-click a cell to enter the editing state. Or if you prefer to use a single-click, adjust the Invoking Cell Edit State setting.
Cell Editing
It's important to note that cell editing shortcuts only work when the grid is editable. The following cell editing shortcuts are supported:
Pressing Enter or clicking outside of the cell you're actively editing to commit any changes made. You'll also use the Enter key to execute buttons.
Pressing Esc to discard any changes to the cell you're actively editing.
It's also important to note that end-users can execute any cell with a Value is Clicked trigger applied by pressing Alt + Enter.
Checkboxes
There are a few shortcuts specific to checkboxes.
If end-users aren't editing a checkbox cell, they can select and clear boxes by either:
Pressing Enter.
Single-clicking in the checkbox.
Single or double-clicking outside the checkbox.
The last option depends on the Invoking Cell Edit State setting.
If end-users are editing a checkbox cell, they can select and clear boxes by either:
Pressing Enter.
Single-clicking in the checkbox.
Single or double-clicking outside the checkbox.