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.
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.