Build a Dashboard to Dynamically Populate/Filter Data on Page Elements

Build a Dashboard to Dynamically Populate/Filter Data on Page Elements

1. Requirement

Improve user experience with an interactive dashboard that dynamically updates the content of dashboard elements based on button actions.

2. Use Case

Consider an organization utilizing Zoho Creator task management application to manage their team's tasks. The application features a comprehensive dashboard page that displays task information relevant to each team member based on their login email address. Additionally, it dynamically adapts to showcase task information for the entire team when a designated button is clicked, seamlessly transitioning to a team-wide dashboard view.

3. Steps to Follow

3.1. Create Form

  1. Create a form with the following details to add task details.

    Form

    Form Link Name

    Field Type

    Field Name

    Field Link Name

     

     

     

     

     

     Add Task

     

     

     

     

     

     Add_Task

    Single Line

    Task Name

    Task_Name

    Multi Line

    Description

    Description

    Drop_Down

    Assign To

    Assign_To

    Radio

    • High

    • Medium

    • Low

    Priority

    Priority

    Drop_Down

    • In Progress

    • Completed

    • On Hold

    • Open

    Status

    Status

3.2. Create Dashboard

Note: The following steps outline the process of designing a dashboard that aligns with our specific use case. Feel free to customize your own dashboard to suit the unique requirements of your use case.
  1. Create a page named 'Dashboard.'
  2. Add the below mentioned page variables to the page. These variables will be used in the page elements to display dynamic values

    Variable Name

    Data Type

    inProgress

    int

    open

    int

    completed

    int

    highPriority

    int

    dashboardType

    string

    searchQuery

    string



  3. Drag and drop a panel into the page.

  4. Replace the existing panel elements with a text element, Set the display value as ${dashboardType} to dynamically showcase the specific dashboard type
  5. Add two buttons in the panel with the label Team Dashboard and My Dashboard.

  6. Configure the Action for buttons as shown below. On configuring, when the buttons are clicked, the page refreshes with the respective query parameters.

    Action

    Team Dashboard

    My Dashboard

    Action type

    Open Page

    Open Page

    Page

    Dashboard

    Dashboard

    Query parameters

    dashboardType=Team Dashboard

    dashboardType=My Dashboard

    Open in

    Same window

    Same window


  7. Include four more panels to the page to show the count of the tasks with respect to the status and add a text header into the panel as shown below.

  8. Configure each panel's Display settings for the header as shown below.

    Display

    Panel 1

    Panel 2

    Panel 3

    Panel 4

    Display data

    Page Variables

    Page Variables

    Page Variables

    Page Variables

    Select Variable

    inProgress

    open

    completed

    highPriority

    Show variable as

    Actual

    Actual

    Actual

    Actual

    Units

    None

    None

    None

    None

    Format

    1,234,567

    1,234,567

    1,234,567

    1,234,567


  9. Add a sub header for each panel to show the status information. Configure the subheader's Display settings as shown below.

    Display

    Panel 1

    Panel 2

    Panel 3

    Panel 4

    Display data

    Text

    Text

    Text

    Text

    Value

    In-Progress

    Open

    Completed

    High Priority


  10. Arrange the panels as shown below.

  11. Embed the report of the Add Task form below the panels in the page in our case the report name is All Tasks. In the upcoming step, a filter will be applied to this report to display tasks related to the logged-in user.

  12. Set filter for the embedded report by clicking Filter in the configuration page of report element.

  13. Click Add filter and enter the below details to filter report based on the value supplied to the searchQuery page variable. The value for the searchQuery page variable will be supplied through page script in the following steps.

    Filter

    Select Field

    Select Operator

    Enter Value

    Assign To

    Contains

           input.searchQuery


3.3. Add Page Script

  1. Navigate to the page script and enter the below script to your page.
  1. // Fetch the task information related to the logged-in user and supply it to the page variables.
  2. input.inProgress = Add_Task[Status == "In Progress" && Assign_to == zoho.loginuserid].count();
  3. input.open = Add_Task[Status == "Open" && Assign_to == zoho.loginuserid].count();
  4. input.completed = Add_Task[Status == "Completed" && Assign_to == zoho.loginuserid].count();
  5. input.highPriority = Add_Task[Priority == "High" && Assign_to == zoho.loginuserid].count();
  6. //Filter the report to display tasks assigned to the logged-in user.
  7. input.searchQuery = zoho.loginuserid;

  8. //Fetch task information of all team members when the user clicks the Team Dashboard button on the dashboard, Conversely, load the default page when the user selects My Dashboard.

  9. //The report filter page variable 'searchQuery' is intentionally set to an empty string, ensuring that the report remains unfiltered and loads all records.
  10. if(input.dashboardType == "Team Dashboard")
  11. {
  12.  input.inProgress = Add_Task[Status == "In Progress"].count();
  13.  input.open = Add_Task[Status == "Open"].count();
  14.  input.completed = Add_Task[Status == "Completed"].count();
  15.  input.highPriority = Add_Task[Priority == "High"].count();
  16.  input.searchQuery = "";
  17. }
  18. else
  19. {
  20.  input.dashboardType = "My Dashboard";
  21. }

4. See How It Works


  1. Page script and variables
  2. Add and manage page elements




    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • Configure parameters for page elements

                                                                                                        Note: Page parameters are now improvized as page variables! All your existing page parameters have been moved to the Page Variables and Script tab at the top-right of the page builder. In this tab, you can continue to use these parameters as ...
                                                                                                      • Set height for elements in a page

                                                                                                        The height attribute allows you to specify the height for certain page elements to suit different viewer display choices. This attribute is specified in the <pr> tag. You can set the height as auto , which has the browser calculate a suitable height ...
                                                                                                      • Building an employee dashboard

                                                                                                        Requirement   Create an employee dashboard with buttons that will help the employees to check in and out, find the total number of logged-in hours and apply for leave. Use Case   An Employee Management application has a dashboard for their employees. ...
                                                                                                      • Procurement Dashboard

                                                                                                        1. What does this page cover? Learn about the procurement dashboard, its components, and the metrics with which you can access and interpret the data for informed decision-making and optimizing your business process. Understand more about basics of ...
                                                                                                      • Page script and variables

                                                                                                        1. What does this page cover? Learn about page scripts, their creation and subsequent usage inside the pages component to populate dynamic values in your page elements, thereby minimizing the need for multiple snippets in your page. 2. Availability ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources