In this how-to guide, you'll learn how to remove the action button from a dashboard. The dashboard retrieves submissions from the following source module: https://trainingx.unqork.io/#/display/5eab6c12811bf80215fd6d86.
By default, dashboards made using the ViewGrid component include an action button. Without extra configuration, this button displays as a Submit button. But sometimes, you might want to use a dashboard simply to display data, without any buttons.
Configure the Panel Component
This Panel component acts as a container for the components that follow.
In the Module Builder, drag and drop a Panel component onto your canvas.
In the Property ID field, enter
panelDashboard.Click Save Component.
Configure the Initializer Component
This Initializer component triggers the Plug-In component that you'll set up next.
Drag and drop an Initializer component inside the
panelDashboardPanel component.In the Property ID and Label Text fields, enter
initStart.From the Trigger Type drop-down, select
New Submission.In the Outputs table, enter the following:
#
Source
Type
Value
1
pluginGetSubmissions
trigger
GO
.png)
Click Save Component.
Configure the Hidden Component
This is the first of two Hidden components in this configuration. This component stores the module ID. You can retrieve the module ID from the source module’s URL as follows: https://trainingx.unqork.io/#/display/5eab6c12811bf80215fd6d86
Drag and drop a Hidden component inside the
panelDashboardPanel component, below your Initializer component.In the Property ID and Label Text fields, enter
moduleId.In the Default Value field, enter
5eab6c12811bf80215fd6d86. This value is the source module's module ID.Click Save Component.
Configure the Plug-In Component
This Plug-In component retrieves submissions to display in your dashboard.
Drag and drop a Plug-In component inside the
panelDashboardPanel component, below your Hidden component.In the Property ID and Label Text fields, enter
pluginGetSubmissions.In the Inputs table, enter the following:
#
Property ID
Mapping
1
moduleId
moduleId
2
'firstName,middleName,lastName,email,dateOfBirth'
fields
From the Internal Services drop-down, select List Submissions for Dashboard.
.png)
Click Save Component.
Configure the Second Hidden Component
This Hidden component stores the submission ID.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below your Plug-In component.In the Property ID and Label Text fields, enter
submissionId.Click Save Component.
Configure the ViewGrid Component
Lastly, let's add a ViewGrid component to display on your dashboard. You'll set the Action field to null, removing the action button from your dashboard.
Drag and drop a ViewGrid component inside the
panelDashboardPanel component, below yoursubmissionIdHidden component.In the Property ID field, enter
gridView.In the Label Text field, enter
View Grid.In the Action field, enter
null. Doing so removes the action button from your dashboard.In the Inputs table, enter the following:
#
Source
Required
1
pluginGetSubmissions
(checked)In the Outputs table, enter the following:
#
Source
Mapping
1
submissionId
id
In the Display table, enter the following:
#
ID
Formula
Heading
1
firstName
First Name
2
lastName
Last Name
3
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format', 'MM/DD/YY')
Date of Birth
The Moment.js in the Formula column formats the
dateOfBirthvalues asMM/DD/YY..png)
Click Save Component.
Save your module.
Here's how your completed example looks in the Module Builder:
.png)
Here's how your completed example looks in Express View, before removing the action button:
.png)
Here's how your completed example looks in Express View, with the default Submit button removed:
.png)
In this how-to guide, you'll learn how to remove the action button from a dashboard. The dashboard retrieves submissions from the following source module: https://trainingx.unqork.io/#/display/5eab6c12811bf80215fd6d86.
By default, dashboards made using the ViewGrid component include an action button. Without extra configuration, this button displays as a Submit button. But sometimes, you might want to use a dashboard simply to display data, without any buttons.
Configure the Panel Component
This Panel component acts as a container for the components that follow.
In the Module Builder, drag and drop a Panel component onto your canvas.
In the Property ID field, enter
panelDashboard.Click Save & Close.
Configure the Initializer Component
This Initializer component triggers the Plug-In component that you'll set up next.
Drag and drop an Initializer component inside the Panel component.
In the Property ID and Canvas Label Text fields, enter
initStart.From the Trigger Type drop-down, select
New Submission.In the Outputs table, enter the following:
#
Property ID
Type
Value
1
pluginGetSubmissions
trigger
GO
.png)
Click Save & Close.
Configure the Hidden Component
This is the first of two Hidden components in this configuration. This component stores the module ID. You can retrieve the module ID from the source module’s URL as follows: https://trainingx.unqork.io/#/display/5eab6c12811bf80215fd6d86
Drag and drop a Hidden component inside the
panelDashboardPanel component, below your Initializer component.In the Property ID and Canvas Label Text fields, enter
moduleId.In the Default Value field, enter
5eab6c12811bf80215fd6d86. This value is the source module's module ID.Click Save & Close.
Configure the Plug-In Component
This Plug-In component retrieves submissions to display in your dashboard.
Drag and drop a Plug-In component inside the
panelDashboardPanel component, below your Hidden component.In the Property ID and Canvas Label Text fields, enter
pluginGetSubmissions.From the Trigger Type field options, select
Manual.Complete the Inputs table as follows:
Property ID
Mapping
moduleId
moduleId
'firstName,middleName,lastName,email,dateOfBirth'
fields
From the Internal Services drop-down, select
List Submissions for Dashboard..png)
Click Save.
Configure the Second Hidden Component
This Hidden component stores the submission ID.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below your Plug-In component.In the Property ID and Canvas Label Text fields, enter
submissionId.Click Save & Close.
Configure the ViewGrid Component
Lastly, let's add a ViewGrid component to display on your dashboard. You'll set the Action field to null, removing the action button from your dashboard.
Drag and drop a ViewGrid component inside the
panelDashboardPanel component, below yoursubmissionIdHidden component.In the Label field, enter
View Grid.In the Property Name field, enter
gridView.In the Action field, enter
null. Doing so removes the action button from your dashboard.In the Inputs table, enter the following:
ID
Required
pluginGetSubmissions
Yes
In the Outputs table, enter the following:
ID
Mapping
submissionId
id
In the Display table, enter the following:
ID
Formula
Heading
firstName
First Name
lastName
Last Name
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format', 'MM/DD/YY')
Date of Birth
The Moment.js in the Formula column formats the
dateOfBirthvalues asMM/DD/YY..png)
Click Save.
Save your module.
Here's how your completed example looks in the Module Builder:
.png)
Here's how your completed example looks in Express View, before removing the action button:
.png)
Here's how your completed exxample looks, with the default Submit button removed:
.png)