Showing data in an HTML table in real time
I have a dashboard which has a stateless form with a notes field in it. The notes field is outputting an HTML table which is fetching data from a regular form.
I wanted the table to show data in real time, without having to manually refresh the tab or using Tampermonkey/auto refresh extensions. I started searching around and didn't find anything about it. I found a solution.
In my stateless form I have added in a Decision Box. Then I created a workflow on user input of the decision box.
The code will be something like this:
- if(Decision_box == true)
- {
//fetch data - //put data into notes field HTML Table
- input.Decision_box = false;
- }
- else if(Decision_box == false)
- {
//fetch data - //put data into notes field HTML Table
- input.Decision_box = true;
- }
After that I created another workflow on Load of Form:
- input.Decision_box = true;
This creates an endless loop and the data is updated in "real time".
I am unsure how stable this is, but we can use a few seconds of delay with httpstat.us in case it isn't stable.
I have attached a video to show the process in action.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.