An AppGini user sent me an interesting question, and I wanted to share the answer here. Here is his question:
I need to refresh the table view, but without blinking, as currently setInterval is very anoying. Is there any way to AJAX load the table view, or do you have any suggestion (Use case : the table view is used on a big screen, there is 5 tablets who "post" to the big screen. so everytime somebody insert a new record it is visible on the big screen.)
A very simple solution is to use jQuery .load() method ... Add the following code to the hooks/tablename-tv.js file (where tablename is the name of the concerned table -- create the file if it doesn't already exist in hooks):
Code: Select all
Replace tablename in the above code with the actual name of the table, and optionally change 10000 to the number of milliseconds between reloads -- or leave it to reload the table every 10 seconds. This will update the table with any new records every 10 seconds without reloading the whole page or flickering the screen.
Learn all the tips and tricks of customizing AppGini apps through our online course
Summary Reports plugin
enables you to build powerful reports and charts inside your AppGini application through a few simple steps. See the big picture and discover trends in your data that empower you to take the right decisions confidently.
Search Page Maker
enables you to build user-friendly yet powerful search pages for your AppGini application by simply dragging and dropping the fields you want to include in search.