Advanced Data Grids
  • 16 Jun 2022
  • 5 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Advanced Data Grids

  • Dark
    Light

Article summary

Overview

Similar to a normal Data Grid, the Data Grid (Advanced) Form Component displays a list of data objects from within a Grid on a Form with each row representing an object and each column representing an object property. 

The difference of Advanced Data Grids are that its objects are sourced from a Report either created or picked within the Form Properties tab. Advanced Data Grid objects are also edited in a similar process to editing objects within a Report. In contrast, the standard Data Grid only allows selection from the columns provided by the Form Control and allows limited grouping options for these columns. Therefore, Advanced Data Grids provides to Designers further flexibility for information presentation by offering a method of displaying a specified Report within a Form.


Example

  1. In the Designer Project, select the CREATE FLOW button. 
  2. Select Flow, name the Flow, then select CREATE
  3. Select the Done outcome path of the Start step.
  4. In the Add After dialog, expand Integrations > All Integrations > Internal Services > Account Service, select the GetAll step. Select ADD.
  5. Select the Done outcome path of the GetAll step.
  6. In the Add After dialog, select the Show Form step in the Favorite Steps category. Select ADD.
  7. With the Show Form step selected, in the Properties panel, select PICK OR CREATE FORM.
  8. Select CREATE under Create New.
  9. Choose Form, name the Form, and select CREATE.
  10. In the Form Designer, expand the Data section of the Toolbox and add the Data Grid [Advanced] to the Form.
  11. Navigate to the Data Grid [Advanced] Properties panel, under Type search for and select "Account".
  12. Under Input > Input Data Name, type "Account Adv Data Grid".
  13. Under Source, select EDIT ADVANCED DATA GRID REPORT.
  14. In the Report Designer, under Data Fields, select Add
  15. Add the following fields: Email Address, First Name, and Last Name.
    Notice that the Data Source is already populated with the Type selected in the Properties for the Advanced Data Grid.
  16. Save and close the Report Designer.
  17. In the Flow Designer, select the Show Form step.
  18. Under Inputs > Account Adv Data Grid, select Pick.
  19. In the Pick Data for Input dialog, choose GetAll_Output.
  20. Connect the path from the Show Form step to the End step.



Debug

  1. Select the Debug button from the top action bar in the Flow Designer.
  2. Select Start Debugging.
  3. The Flow runs in the Debugger. The Data Grid [Advanced] will show the list of accounts with the appropriate Data Fields from the Source Report.



Hiding Actions 

Designers may hide Actions of Entities within an Advanced Data Grid by utilizing Action Visibility Rules. Designers may hide both custom Actions and default Actions such as 'Delete', 'Manage', etc. when configured successfully.

The following example describes how to hide the default 'Delete' Action to unspecified accounts in an Advanced Data Grid.

Prerequisite Knowledge
The following article require familiarity with the following topics:
  1. In a Designer Folder, select Create Datatype/Integrations. Under User Defined Types, select Entity.
  2. In the Entity creation menu, mirror the configuration displayed in the screenshot below. Select Save once done.
  3. Back in the Designer Folder, create or open a Flow. Name it 'TestData' and open the Flow in the Flow Designer.
  4. Create example data for display in the Advanced Data Grid by using the Create Actions explain in the Entity Structure CRUD Actions article.
  5. Once configured, save and exit the Flow Designer.
  6. Back in the Designer Folder, create or open a Flow. Name it 'Hiding Actions on Advanced Data Grid Flow' and open the Flow in the Flow Designer.
  7. In the Flow Designer, add the Fetch Entities step and connect the Start step to it. This step populates the Advanced Data Grid according to specified criterion. Select it. 
  8. For Type Name, select the created Entity Data Structure aka 'TestEntity'.
  9. In the Flow Designer, add the Show Form step. Connect the Fetch Entities Step and End step to it as shown below. Select it.
  10. At the top of the Properties, select Pick or Create a Form to create a new Form. Name it and open the Form Designer.
  11. Add a Data Grid Add, Data Grid Remove, and a Button to the Form. The Button will serve as the 'Submit' outcome.
  12. Search for the Advanced Data Grid in the Toolbox and add it to the workspace. Select it to open its Properties.
  13. Under Source, select the created Entity Data Structure as the source of the Advanced Data Grid. This example will use an Entity Data Structure filled with sample data. Once select, the Report Designer will open.
  14. Configure the Report as shown in the GIF below with the Data Source listed as the Entity Data Structure and its String, Date, and Boolean Data Fields present in the Report.
    Refer to Understanding Differences Between Data Structures article to view which ones support Configuration Folders.

  15. After selecting the source, save and exit back to the Designer Folder. 
  16. Find the Entity' Configuration Folder named ''TestEntity' Configuration' and right-click on it to open the Action Menu.
  17. Select Action Visibility Rule and name it 'Hide Delete'. Select CREATE to open the Rule in the Rule Designer.
  18. To configure this Action to affect unspecified accounts, select Select Data Element > Flow Data > Initiating Account > Email Address. Select NEXT.
  19. Select Is Not in the condition menu. Select NEXT.
  20. For the Email Address prompt, enter in the Email you are testing on. This condition specified which unspecified accounts are affected by this rule. This example uses an admin account, but any account will suffice. Once specified, select DONE.

  21.  Select the orange 'Add' button underneath the recently created condition. Select 'Add Condition'. This new condition will specify the Action to hide.
  22. Select Select Data Element > Action > Name. Select NEXT.
  23. Select Equals in the condition menu. Select NEXT.
  24. For the Action Name prompt, enter 'Delete. Select DONE. The Rule's configuration should now match the GIF below.
  25. Save and exit the Rule Designer. Return back to the Designer Folder.
  26. If already logged into the specified account, log out and log into an unspecified account. In this example's case, this is any account that is not admin@decisions.com.
  27. Once logged into an unspecified account, navigate to the Designer Folder hosting this example. Open it.
  28. Run the 'Hiding Actions on Advanced Data Grid Flow' and right click an Entity to view its Actions.
    Designer Folder not visible on the other account?
    Permissions for the Designer Folder may need editing to allow the second account to view and run stored Elements. Refer to our About Folder & Portal Permissions article for further details.



Debug

Visible

When logged in with the account associated with the specified email address, the Delete Action is available to use. 

Hidden

After logging in with an unspecified account, the Delete Action is no longer available.



Was this article helpful?