Date Range Filter on Pages
  • 01 Nov 2021
  • 3 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Date Range Filter on Pages

  • Dark
    Light

Article summary

Overview

The Date Range Filter is a feature that allows custom Date ranges to be applied in real-time by the viewer of a Report in Decisions. The following document demonstrates how to apply and utilize a Date Range Filter on Pages in Decisions. 


Example

  1. In a Designer Folder, select All > Manage > Page/Dashboard > Add/Page/Dashboard from the Global Action Bar.  
  2. In the resulting dialog window, under PAGE DATA > Page Name click PICK PAGE.
  3.  CREATE a new default Page, name it and select CREATE again. In this example, the Page is named Date Range Filter
  4. In the Page Designer Toolbox, under REPORTSdrag a Report Viewer to the Page

  5. In the Properties panel of the Report Viewer, click PICK DEFAULT REPORT under REPORT SETUP.

  6.  In the resulting Create or Pick Report window, select CREATE.

  7. Click the default Report, name it, and select CREATE. In this example, the Report is named Date Range Filter on a Page.

  8. In the Report Designer, under Data Sources, Add Folder Data Source.

  9. Under Data Fields, Add Folder Type Name and Created on Date.

  10. Under Filters, Add Date Range Filter.

  11. In the Properties panel > SETTINGS > Date Range of the Date Range Filter, change the default THIS YEAR to CUSTOM. Click APPLY. This filter can also be changed on the Page created later in this tutorial.
  12. The Date Field will reflect the date Data Field selected. In this example, it will be Created on Date.
  13. Save and Close the Report Designer.
  14. In the Page Designer, navigate to the TILES section of the Toolbox and add a Simple Tile component to the Page.
  15. In the Properties panel of the Simple Tile component, click PICK OR CREATE FLOW under COMMON PROPERTIES.
  16. Click CREATE, then select and name the Tile Source Flow.
  17.  In the Flow Designer with the Create Tile Data step selected, navigate to the Properties panel > TILE SETUP section and change the input mapping on Line 1 to Merge HTML Text.
  18. In the resulting window, input "Start Date:" and locate For Dates > Base Date [FromDate] in the left Folder Tree.
  19. Next, input "End Date:" and locate For Dates > EndDate. Click SAVE.
  20. Save and Close the Flow Designer.
  21. In the Page Designer, be sure to enable the Respect Date Range Filter on Page boolean.
  22. Save and Close the Page Designer.
  23. In the resulting Add Page/Dashboard window, click SAVE. Notice the addition of a Date Range Filter in the PageData category in the Designer Folder and DATE RANGE FILTER in the Global Action Bar.
  24. Click on the DATE RANGE FILTER in the Global Action Bar. Notice the CUSTOM DATE RANGE drop-down is available to edit; this drop-down will show the dates selected when creating the Report and also allow the user to choose new ranges.


Displaying the End Date

  1. In the Page Designer, navigate to the TILES section of the Toolbox and add a Simple Tile component to the Page.
  2. In the Properties panel of the Simple Tile component, click PICK OR CREATE FLOW under COMMON PROPERTIES.
  3. Click CREATE, then select and name the Tile Source Flow.
  4.  In the Flow Designer with the Create Tile Data step selected, navigate to the Properties > TILE SETUP section and change the input mapping on Line 1 to Merge Plain Text.
  5. In the resulting window, input "Start Date:" and locate For Dates > Base Date [FromDate] in the left Folder Tree.
  6. Next, input "End Date:" and locate For Dates > EndDate. Click SAVE.
  7. Save and Close the Flow Designer.
  8. In the Page Designer, be sure to enable the Respect Date Range Filter on Page Boolean.
    Additional Information on Respect Date Range Filter
    Enabling Respect Date Range Filter on Page allows the ability to obtain the Start and End Dates that are determined by the Date Range Filter on the Report. These values can then be applied and mapped to the Simple Tile, and update dynamically upon adjustment of those dates. 


  9. Save and close the Page Designer, then navigate to the DATE RANGE FILTER Page in the Global Action Bar. 
  10. Change the dates in the CUSTOM DATE RANGE drop down and notice the Simple Tile updating dynamically. 

Was this article helpful?