Change Report Using Tiles Flow Behavior
  • 17 Oct 2022
  • 3 Minutes to read
  • Dark
    Light

Change Report Using Tiles Flow Behavior

  • Dark
    Light

Article Summary

Overview

A Report has many dynamic qualities, one of which is the use of Tiles to add a flair of customization. This tutorial demonstrates how to change a Report in the Report Viewer component on a Page based on a Simple Tile component click. In Decisions, Simple Tile components can send data on click, and the Report Viewer component can listen to such events and refresh.


Example

For this example, two previously created Reports were used: Accounts Report and Folders Report

  1. In a Designer Folder, navigate to the Global Action Bar and click Manage > Page/Dashboard > Add Page/Dashboard on Folder Actions Panel. 

  2. In the Add Page/Dashboard dialog, click PICK PAGE. 
  3. Next, select CREATE in the resulting Create or Pick Page dialog. 
  4. Click the default Page, name it and click CREATE to enter the Page Designer. In this example, the Page is named Tile Flow Behavior.  

  5. In the Page Designer, add a Simple Tiles component from the Toolbox > TILES category to the workspace.

  6. Next, under the Properties panel COMMON PROPERTIES select PICK FLOW.
  7. In the Create or Pick Flow dialog, click CREATE. Select the Tiles Source Flow, name it, and click CREATE. In this example, the Flow is named Reports Menu Flow.

  8. In the Flow Designer, from the Toolbox > DASHBOARDS > Advanced (1) add a Create Tile Data step.

  9. In the Properties panel > TILE SETUP, change the input mapping of the Line 1 string from Ignore to Merge HTML Text from the mapping options.
  10. >Select Show Editor and in the resulting dialog, enter the text "Accounts Report". Edit the text as desired using the bottom menu; this text will appear on the Simple Tiles component placed on the Page [Tile Flow Behavior].
  11. Click SAVE to exit the Merge Text Editor.

  12. In the Properties panel > ACTIONS > Tile Action Type drop down menu, choose PushDataToControls.

  13. Notice the appearance of Data Bus Name and Data Bus Value. ACTIONS > Data Bus Name has a Constant mapping. The user will input the string: Report.

  14. <> Close and Save the Flow to locate the Accounts Report and get its Id.
  15. Navigate to the Report, right-click and select Manage > Get Report ID. Copy Text and click DONE.

  16. In the ID dialog, Copy Text and click DONE.  
  17. Moving back to the Flow [Reports Menu Flow] Designer, the newly copied Report Id will serve as the Constant mapping input under ACTIONS > Data Bus Value.

  18. In OUTPUTS > Done > Tile Data, rename Tile Data to correspond to the reporting tile. The first tile is renamed Accounts Report Data; this renaming is helpful when selecting INPUTS on the End step.
  19. Next, add another Create Tile Data step to Flow. This step will be configured similarly to the previous one.
  20. In the Properties panel > TILE SETUP, Line 1 will be set to a Merge HTML Text mapping. Click SHOW EDITOR to add the text "Folders Report". Edit as desired. SAVE.
  21. Further down in the Properties panel > ACTIONS > Tile Action Type is also PushDataToControls.
  22. As ACTIONS > Data Bus Name appears, it will be set to a Constant input mapping. The input will be Report.
  23. For ACTIONS > Data Bus Value, the Folders Report Id is the input for the Constant mapping.
  24. The OUTPUTS > Done > Tile Data will be renamed as Folders Report Data.

  25. Connect the outcome from the second Create Tile Data step to the End Step in the Flow.
  26. In the Properties panel > INPUTS > Tile Data for the End step will have a Build Array mapping.
  27. INPUTS > Tile Data > Item 0 has a Select From Flow mapping. In the resulting Pick Data for Input: Tile Data dialog, select the output from the first step: Accounts Report Data
  28. ADD another item and configure it with the output from the second step: Folders Report Data.

  29. Save and Close the Flow.
  30. In the Page Designer, from the Toolbox > REPORTS add a Report Viewer to the workspace.  
  31. With the Report Viewer component selected, under Properties > REPORT SETUP check the Get Report Id from Selection Bus boolean.
  32. REPORT SETUP > Selection Bus Name is defined as Report. The Selection Bus Name pushes Report Ids to the Tile Flow.

  33. Save and Close the Page Designer.  
  34. In the Designer Folder, the recently created Page can be seen in the Global Action Bar. Select TILE FLOW BEHAVIOR to view the completed Page. 
  35. The Page will load with no data displayed; click on each Simple Tile component and the data will display. 

Was this article helpful?