What are Actions in Data Views?
Action buttons can be configured for each record in a Data View and typically allow further processing of this record in a BRYTER Module. In the below vacation request example, managers would see all pending vacation requests in a Data View and could select Review to open a BRYTER Module that allows them to approve or reject the request and update the status from "Pending" to "Rejected" or "Approved".
Why would you use Actions in Data Views?
Actions allow you to easily process the specific record at hand to either view more content than displayed in the Data View or to update, add, or manage the record further. In our above example, the Action button simplifies the cancellation or review of a request by eliminating unnecessary steps. Different URLs can be specified for Test and Live environments, e.g. linking to the same Module which is published in either TEST or LIVE environment.
How to use actions in Data Views
💡 Please note that linking to non-Module URLs is not supported in Data View Actions. We recommend the following workaround: publish a Module that only contains an Action Node and a Redirect Result Node with a configured custom URL.
- In the Data View editor select the tab ACTIONS.
- Select Add a new action. Then, type in the text that should be displayed in an additional Actions column into the field Action name.
💡 Consider adding an emoji to highlight the Action in the Data View.
- Select the Destination Module from the dropdown.
Once the destination Module has been selected, the Action column at the end of every record in your Data View will display a clickable link. The user clicking on the link will be redirected to this Module in a new window.
- In most cases, you will want to continue adding or updating information for the specific record or case in your table. If you want to ensure that the Module you are linking to is actually reading information saved for this specific record out of the underlying database, you need to add a URL Parameter. Similar to Redirect Results, your Key should be the equivalent to the QUERY PARAMETER NAME in the URL Parameter Node in the destination Module.
How to use URL Parameters in Data View Actions
- Click on Add a new parameter.
- Type in the Key. This key will be used as the Query Parameter Name of the URL Parameter Action Node. Select the correct Value from your Case Database. This value will be passed to the destination Module. This is the link between the Data View and the Module.
- In your Module, ensure that you include an Action Node for URL Parameters that can pick up or receive this value. The QUERY PARAMETER NAME needs to be an exact match of the Key in your Data View Action.
- In this example, the ID – the value which is passed through with the URL Parameter – can now be used to read the record from the database. For this, add an Action Node to your graph, choose Case Databases and Read.
Keywords: dataview; dataviews; Datenansicht; Dashboard; case overview