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





        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            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







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    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


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            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 Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Understanding build agent

                                                                                                                                      In a nutshell Build agent is an AI-powered development assistant in Zoho Creator that lets you modify existing applications using natural language prompts. Available in both edit mode and live mode, it interprets your requirements, generates a ...
                                                                                                                                    • Zoho Creator : Best practices to build better apps

                                                                                                                                      What does this page cover This page outlines recommended best practices for building efficient and scalable applications in Zoho Creator. It covers guidelines for designing apps, structuring forms and fields, organizing data, writing optimized Deluge ...
                                                                                                                                    • Conditions to filter records based on Creator fields

                                                                                                                                      In a nutshell Learn about the criteria that you can set to filter records and run workflows within the Creator application. 1. Overview Conditions help in filtering records from a Zoho Creator report. Based on the criteria set in a condition, actions ...
                                                                                                                                    • Understanding page builder

                                                                                                                                      In a nutshell Page builder is the space where you can customize the pages and its elements according to your business needs. You can add and arrange a wide range of page components, such as panels, boards, charts, forms, reports, widgets, and ...
                                                                                                                                    • Understanding reports in a page

                                                                                                                                      In a nutshell In Zoho Creator, reports can be embedded within pages to serve as part of a centralized dashboard, making form data easily accessible and organized with other relevant page elements. End-users can view, filter, and manage data without ...
                                                                                                                                      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