- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Adding User Data via Dashboard
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.4.0 |
Root Folder | Example Lab - Add Items via Dashboard |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to edit a defined data structure through a user dashboard interface while maintaining a total count of items using a tile.
Explanation
This example uses a list of animals and their quantities as entities to be added to a data structure. In order to add more items to the list, the dashboard uses a "Flow Run Part" to run the Flow "Add Data in Dashboard". This Flow first displays a Form, so that Form will be visible in the dashboard. The Form displayed requests the user to input and animal and the quantity of that animal. Upon the user entering this information and clicking the Add button the data will be updated by the Flow using the "Save" step. and the new animal and quantity will be displayed in the report displayed in the dashboard. The report will automatically be refreshed because the "Add Data in Dashboard" Flow ends with the "Send Folder Change event" step.
The total animal count is calculated by using the "Fetch Entities" step. This step will fetch a list of all items stored in the data structure and output a count of these items. That count is then passed into the "Create Tile Data" step which displays the count in the dashboard.