Overview
Unqork applications often use dashboards, and configuring a ViewGrid component is the simplest way to create and customize a basic dashboard display. ViewGrid components let you view and manage submission data, work queues, and large data sets. Tailor your Viewgrid component to include any number of columns, buttons, and filters as needed. These features let end-users easily navigate and manage the data in the dashboard.
You can find the ViewGrid component under the Display & Layout group to the left of the Module Builder.
About the Configuration Window
To learn more about general component settings and those that display when a component is associated with Data Models, view our General Component Settings article.
Display Panel
Field Text
Setting | Description |
---|---|
Canvas Label Text | Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. User-friendly labels make your module more accessible. Keep labels short and descriptive (a word or two) using title case. For longer entries, use sentence case. |
Default State Options
Setting | Description |
---|---|
Hide Field | Displays or hides the component from view. Setting Hide Field to By default, Hide Field is set to |
Formatting
Setting | Description |
---|---|
Grid Height | Enter the grid height in pixels. Grid height must be between 250 and 426 pixels. By default, the grid height is set to 426 pixels. Leave this field blank to keep the default setting. |
Page Size | Enter the number of records to display on each page. By default, the ViewGrid component displays 10 records. Leave this field blank to keep the default setting. |
Show Title | Display the Canvas Label Text field's value above the dashboard. By default, this setting is |
Show Filters | Display a search box below each column header. End-users use this search box to type a few letters or an entire word to narrow down the results in the dashboard.
By default, this setting is |
Source Has Pagination | Format the pagination in your ViewGrid component. Select this checkbox if pagination is enabled in the original data source component. By default, this setting is |
No Data Text | Enter a message that displays when there's no data to display.By default, this field is empty. |
Enable Infinite Scrolling | Allow end-users to scroll through the ViewGrid table without pagination. By default, this setting is |
Sort by Columns | Allow end-users to sort the columns of your ViewGrid component. Click the column header once to sort in ascending order (A to Z). Click the column again to sort in descending order (Z to A). By default, this setting is |
Always Display Sort Buttons | Add an arrow icon next to the column name. The arrow icon points up (ascending order, A to Z) or down (descending order, Z to A) depending on your sort order. A column displays in ascending order by default when it's clicked.
By default, this setting is |
Data Panel
Data
Setting | Description |
---|---|
Data Source URL | For an API to retrieve data, you need the API's URL information. In this field, enter the API information as obtained from the API documentation. Add additional filters at the end of the URL if you want to drill down to a specific type of data. |
Inputs, Display, and Outputs
Inputs
Setting | Description |
---|---|
Source | Provide your component with an input reference. For example, the Property ID of another component in the module. |
Required | When set to |
New Row | Click to add a new row to the Inputs table. |
Display
Setting | Description |
---|---|
ID | Enter the field ID of an element that exists in your input to display in the grid. |
Formula | Adjust the data in the row. For example, use MomentJS to reformat a stored Date Input value from mm/dd/yyyy to dd-mm-yy.
|
Heading | Display a heading in Express View for each Property ID entered in the ID fields. |
Type | Determine the format in which your data displays in your ViewGrid component. Select string, number, or date using the drop-down menu. |
CSS | Apply an optional custom style sheet. |
Button | Set to |
New Row | Click to add a new row to the Display table. |
Outputs
Setting | Description |
---|---|
Source | The component where the ViewGrid component sends the data. Enter the Property ID(s) of the destination component(s). The Property ID entered must match the Property ID used in the output component. |
Mapping | Specifies the field ID from the input that the output component is set to. |
New Row | Click to add a new row to the Inputs table. |
Actions Panel
Actions
Setting | Description |
---|---|
Action | Create a buttonClick event for each row of your ViewGrid component. Enter a name to display in all rows. The Action label is You can also connect your ViewGrid component to a Decisions component to trigger the action.
By default, this field is empty. |
Event | Enter a value to output in the console data when the Action button is clicked. By default, this field is empty. |
Advanced Panel
Row Selection Options
Setting | Description |
---|---|
Select Row Output | Use the Property ID of a component to store the unique identifier of select rows. Create this value in the Select Row ID Property field. By default, this field is empty. |
Select Row ID Property | Use a key from your data source as a unique identifier for the selected row in the ViewGrid table. By default, this field is empty. |
Enable Selection of Multiple Items | Allow end-users to select more than one row at a time. By default, this setting is |
Additional Styling
Setting | Description |
---|---|
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. |
Adding a ViewGrid Component
Create a dashboard that displays some basic submission data from a module. This dashboard does not require action buttons and the data in this configuration is dynamic. So, it updates as end-users submit or edit submissions.
To simplify this configuration, use the following source module: https://training.unqork.io/#/form/648c6514991ac5b474b73b2f/edit.
This is a front-end module where end-users can submit basic information, like name, date of birth, and email address. Set up a Plug-In component to retrieve this information to display on a dashboard.
These instructions assume that you have an open module saved with a title.
Configure the Hidden Component
First, configure a Hidden component to store the module ID of the source module. You'll need to copy the module ID of the source module's as follows: https://training.unqork.io/#/form/648c6514991ac5b474b73b2f/edit
.
In the Module Builder, drag and drop a Hidden component onto your canvas.
In the Property ID and Canvas Label Text fields, enter
moduleId
.In the Default Value field, enter
648c6514991ac5b474b73b2f
. This is the source module's module ID.Click Save Component.
Configure the Plug-In Component
Configure a Plug-In component to retrieve the submission data from the source module to display in your dashboard.
Drag and drop a
Plug-In component onto your canvas, placing it below your Hidden component.
In the Property ID and Canvas Label Text fields, enter
plugGetSubmissions
.Navigate to the component's Data settings.
From the Internal Services drop-down, select List Submissions for Dashboard. The
/fbu/uapi/system/GetSubmissions
URL automatically displays in the Data Source URL field.Next to Inputs, Display, & Outputs table, click Edit.
In the Inputs table, enter the following:
Property ID
Mapping
1
moduleId
moduleId
2
'firstName,middleName,lastName,email,dateOfBirth'
fields
The first row references the module ID stored in the moduleIdHidden component. The second row identifies which source module fields to retrieve and display in the dashboard. The values entered in the Mapping column (moduleId and fields) are native values in Unqork.
Click Save Component.
Configure the ViewGrid Component
Next, configure a ViewGrid component to display the submission data on a dashboard.
Drag and drop a
ViewGrid component onto the canvas, placing it below your
Plug-In component.
In the Property ID field, enter gridView.
In the Canvas Label Text field, enter
View Grid
.In the Inputs table, enter the following:
#
Source
Required
1
plugGetSubmissions
(checked)
The field IDs are those that exist in the source module. The MomentJS in the Formula column formats the dateOfBirth values as MM/DD/YY.
In the Outputs table, enter the following:
#
Source
Mapping
1
submissionId
id
In the Display table, enter the following:
#
ID
Formula
Heading
CSS
Button
1
firstName
First Name
☐ (unchecked)
2
middleName
Middle Name
☐ (unchecked)
3
lastName
Last Name
☐ (unchecked)
4
email
Email
☐ (unchecked)
5
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format', 'MM/DD/YY')
Date of Birth
☐ (unchecked)
Navigate to the component's Actions settings.
In the Action field, enter
null
.Click Save Component.
Configure the Initializer Component
Lastly, configure an Initializer component to trigger the Plug-In component.
Drag and drop an Initializer component onto your canvas, placing it above your Hidden component.
In the Property ID and Canvas Label Text fields, enter initStart.
Navigate to the component's Actions settings.
From the Trigger Type drop-down, enter or select New Submission.
Next to Inputs & Outputs, click Edit.
In the Outputs table, enter the following:
#
Source
Type
Value
1
plugGetSubmissions
trigger
GO
Click Save Component.
Save your module.
Preview your module in Express View to see the result. You can also Preview the source module in Express View to add your own values to populate the dashboard. You can find the source module here: https://trainingx.unqork.io/#/display/648c6514991ac5b474b73b2f.
Resources
Overview
Unqork applications often use dashboards, and configuring a ViewGrid component is the simplest way to create and customize a basic dashboard display. ViewGrid components let you view and manage submission data, work queues, and large data sets. Tailor your Viewgrid component to include any number of columns, buttons, and filters as needed. These features let end-users easily navigate and manage the data in the dashboard.
You can find the ViewGrid component under the Display & Layout group to the left of the Module Builder.
About the Configuration Window
To learn more about general component settings and those that display when a component is associated with Data Models, view our General Component Settings article.
General Settings
Setting | Description |
---|---|
Label | A Label indicates the purpose of the corresponding field or component. For input components, the Label tells the end-user how to interact with the field. For non-input components, the Label is not end-user facing, and only appears in the Module Builder. User-friendly Labels make your module more accessible. Keep Labels short and descriptive (a word or two) using title case. For longer entries, use sentence case. |
Property Name | A Property Name is the unique field ID used by Unqork to track and link components in your module. The Property Name is how the software identifies your component. Using Property Names lets you link components, creating logic-based configurations and API (application programming interface) calls. Property Names must use camel case (stylized as camelCase) without spaces or punctuation. Property IDs must use camel case (stylized as camelCase) without spaces or punctuation. |
ViewGrid Tab | Select this tab to see the configuration settings of the ViewGrid component. |
Permissions Tab | Select this tab to see the RBAC settings of the component. |
Cancel | Click this button to undo any unsaved configuration changes and return to the Module Builder canvas. |
Save | Click this button to save all setting configuration changes and return to the Module Builder canvas. |
Customization Settings
Setting | Description |
---|---|
Show Title | Display the Canvas Label Text field's value above the dashboard. By default, this setting is |
Show Filters | Display a search box below each column header. End-users use this search box to type a few letters or an entire word to narrow down the results in the dashboard.
By default, this setting is |
Grid Height | Enter the grid height in pixels. Grid height must be between 250 and 426 pixels. By default, the grid height is set to 426 pixels. Leave this field blank to keep the default setting. |
Page Size | Enter the number of records to display on each page. By default, the ViewGrid component displays 10 records. Leave this field blank to keep the default setting. |
Source Has Pagination | Format the pagination in your ViewGrid component. Select this checkbox if pagination is enabled in the original data source component. By default, this setting is |
Paginator Source | Use the Property ID of a Plug-in component as the original data source. |
Select Row Output | Use the Property ID of a component to store the unique identifier of select rows. Create this value in the Select Row ID Property field. By default, this field is empty. |
Select Row ID Property | Use a key from your data source as a unique identifier for the selected row in the ViewGrid table. By default, this field is empty. |
Enable Selection of Multiple Items | Allow end-users to select more than one row at a time. |
Show Row Selection | Create a checkbox for each row of your ViewGrid component. The row highlights blue when your end-users select a box. |
Restrict Multiple Selection With Cmd/Ctrl | Pressing and holding the Shift key allows end-users to select rows. Pressing and holding Ctrl (Windows/Linux) or Cmd (Mac OS) allows end-users to select any rows on the page. |
Action | Create a buttonClick event for each row of your ViewGrid component. Enter a name to display in all rows. The Action label is You can also connect your ViewGrid component to a Decisions component to trigger the action.
By default, this field is empty. |
Event | Enter a value to output in the console data when the Action button is clicked. By default, this field is empty. |
No Data Text | Enter a message that displays when there's no data to display.By default, this field is empty. |
Data Source URL | For an API to retrieve data, you need the API's URL information. In this field, enter the API information as obtained from the API documentation. Add additional filters at the end of the URL if you want to drill down to a specific type of data. |
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. |
Data Table
Input Table
Setting | Description |
---|---|
ID | Provide your component with an input reference. For example, the Property ID of another component in the module. |
Required | End-user must enter a value in the field of this input component before the component displays. |
Outputs Table
Setting | Description |
---|---|
ID | The component where the ViewGrid component sends sends the data. Enter the Property ID(s) of the destination component(s). The Property ID entered must match the Property ID used in the output component. |
Mapping | Specifies the field ID from the input that the output component is set to. |
Display Settings
Display Table
Setting | Description |
---|---|
ID | The field ID of an element that exists in your input to display in the grid. |
Formula | Adjust the data in the row. For example, use MomentJS to reformat a stored Date Input value from mm/dd/yyyy to dd-mm-yy.
|
Heading | Display a heading in Express View for each Property ID entered in the ID fields. |
Type | Determine the format in which your data displays in your ViewGrid component. Select string, number, or date using the drop-down menu. |
CSS | Apply an optional custom style sheet. |
Button | Turn the ID name from the Display table into a button. This button applies to each row in your ViewGrid component under the selected column. Use a You can also use a Decisions component to trigger the button. |
Additional Display Settings
Setting | Description |
---|---|
Hidden | Hide the ViewGrid component in Express View. Your ViewGrid component still shows in the Module Builder. |
Enable Infinite Scrolling | Allow end-users to scroll through the ViewGrid table without pagination. By default, this setting is |
Sort by Columns | Allow end-users to sort the columns of your ViewGrid component. Click the column header once to sort in ascending order (A to Z). Click the column again to sort in descending order (Z to A). By default, this setting is |
Always Display Sort Buttons | Add an arrow icon next to the column name. The arrow icon points up (ascending order, A to Z) or down (descending order, Z to A) depending on your sort order. A column displays in ascending order by default when it's clicked.
By default, this setting is |
Field Tags | Assign components one-word labels to help organize, identify, and group the components in your application. Consider an example from the API Specification Snippet: Field Tags are applied to Hidden components in the panelRequest and panelResponse Panel components. The Field Tags identify the data type of parameters included in the API request and response. The API Docs Dashboard tool populates with information about each parameter’s data type, identified by the Field Tag. Field Tags act as a type of Property ID group and let you group components for configuration purposes. Field Tags let you target two or more components using a simple logic component. For example, add the Field Tag tagForDecision to multiple components in your module. Open the Inputs table of a Decisions component and reference the tagForDecision Field Tag as the input of the Decisions component. The output of the Decisions component then affects all components with the tagForDecision Field Tag. Save your Field Tags by pressing Enter (Return) or adding a comma after each entry. |
Comment | Enter comments about your component and its configuration. Use this setting to keep your teammates in the loop. |
Adding a ViewGrid Component
Create a dashboard that displays some basic submission data from a module. This dashboard does not require action buttons and the data in this configuration is dynamic. So, it updates as end-users submit or edit submissions.
To simplify this configuration, use the following source module: https://training.unqork.io/#/form/648c6514991ac5b474b73b2f/edit.
This is a front-end module where end-users can submit basic information, like name, date of birth, and email address. Set up a Plug-In component to retrieve this information to display on a dashboard.
These instructions assume that you have an open module saved with a title.
Configure the Hidden Component
First, configure a Hidden component to store the module ID of the source module. You'll need to copy the module ID of the source module's as follows: https://training.unqork.io/#/form/648c6514991ac5b474b73b2f/edit
.
In the Module Builder, drag and drop a Hidden component onto your canvas.
In the Property ID and Canvas Label Text fields, enter
moduleId
.In the Default Value field, enter
648c6514991ac5b474b73b2f
. This is the source module's module ID.Click Save & Close.
Configure the Plug-In Component
Now, add Plug-In component to retrieve the submission data from the source module to display in your dashboard.
Drag and drop a
Plug-In component onto your canvas, placing it below your Hidden component.
In the Property ID and Canvas Label Text fields, enter
plugGetSubmissions
.From the Internal Services drop-down, select List Submissions for Dashboard. The
/fbu/uapi/system/GetSubmissions
URL automatically displays in the Data Source URL field.In the INPUTS table enter the following:
Property ID
Mapping
moduleId
moduleId
'firstName,middleName,lastName,email,dateOfBirth'
fields
The first row references the module ID stored in the moduleIdHidden component. The second row identifies which source module fields to retrieve and display in the dashboard. The values entered in the Mapping column (moduleId and fields) are native values in Unqork.
Click Save.
Configure the ViewGrid Component
Next, add a ViewGrid component to display the submission data on a dashboard.
Drag and drop a
ViewGrid component onto the canvas, placing it below your Plug-In component.
In the Label field, enter
View Grid
.In the Property Name field, enter
gridView
.In the Action field, enter
null
.In the Inputs table, enter the following:
Setting
Value
ID
plugGetSubmissions
Required
(checked)
In the Outputs table, enter the following:
Setting
Value
ID
submissionId
Mapping
id
In the Display table, enter the following:
ID
Formula
Heading
firstName
First Name
middleName
Middle Name
lastName
Last Name
email
Email
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format', 'MM/DD/YY')
Date of Birth
The field IDs are those that exist in the source module. The MomentJS in the Formula column formats the dateOfBirth values as MM/DD/YY.
Click Save.
Configure the Initializer Component
Lastly, configure an Initializer component to trigger the Plug-In component.
Drag and drop an Initializer component onto your canvas, placing it above your Hidden component.
In the Property ID and Canvas Label Text fields, enter initStart.
In the component's configuration window, click
Actions.
From the Trigger Type drop-down, select New Submission.
In the Outputs table, enter the following:
Property ID
Type
Value
plugGetSubmissions
trigger
GO
Click Save & Close.
Save your module.
Preview your module in Express View to see the result. You can also Preview the source module in Express View to add your own values to populate the dashboard. You can find the source module here: https://trainingx.unqork.io/#/display/648c6514991ac5b474b73b2f.