Long Polling

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

Long Polling

Post by Alisson » 2017-04-01 03:28

Is it possible to add Long Polling to the table view? I'm going to use a TV to display data submitted by sales person and I need the data to display on the tv without having to refresh the page.

Thanks.

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: Long Polling

Post by R Tammam » 2017-12-12 17:33

yes you can , ty the following

1- first you will need to get the ids of all records in the page , you can get them using jquery
2- them make a script that sends an ajax request to the back end to get their data
3- them the back end relpies with their data in Json format
4- use the returned json (the new data of the displayed records) to update your table view
5- put your ajax in set interval to run every some seconds you can decide them

if you follow these steps, it will help you

Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

Re: Long Polling

Post by Alisson » 2018-02-08 17:45

Thanks, R Tammam, I'll try.

Post Reply