NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on February 28, 2025, 06:41:35 AM

Title: Strategies to refresh client browse
Post by: rjolda on February 28, 2025, 06:41:35 AM
Hi All,
C11  NT 14.21
I have a browse which contains 1 to 4 records.  I want to update it automatically maybe every 3 seconds. I don't really need to track anything momentarily so I don't need continuous communication with the server.  I was thinking of a few strategies:
1. Put a hidden button on the browse to use the procedure timer to fire every 3 seconds to get a browse refresh. 
2. Maybe I could send the Record time stamp from the client to the server using a button like #1 and if the time stamp ( for each record ) is different on the server, then refresh the data on the client browse row.
This seems a lot like the disconnected mobile app communication stuff - comparing time stamps, etc. So, is there a built in or easy method to refresh a single browse say every 3 seconds?
BTW, this is NOT a disconnected mobile app. 
Thanks,
Ron
Title: Re: Strategies to refresh client browse
Post by: Jane on February 28, 2025, 07:07:34 PM
I tried something like this a few months ago using websockets. 
I wound up not using this approach because it refreshes the whole browse and I wanted the client session manager to timeout if there hadn't been any "real" activity.
But an example is attached.
Run it.
Open the /dashboard procedure on one computer.
On a different computer (or at least different browser) open /browseMonitors.  Then when you EIP update one of the items, you'll see the browse on the other computer/browser reflect the data.

There's also a timer running on a window that arbitrarily updates the timestamp on the records showing in the "dashboard" - but only if the particular record is marked as enabled.

Might give you some ideas.



Title: Re: Strategies to refresh client browse
Post by: rjolda on March 01, 2025, 03:33:29 AM
Hi Jane,
Thanks - will give it a try this weekend. 
Ron
Title: Re: Strategies to refresh client browse
Post by: Alberto on March 01, 2025, 06:08:19 AM
Hi, Advanced Tab... Refresh
See attached pic
Title: Re: Strategies to refresh client browse
Post by: rjolda on March 02, 2025, 05:47:48 AM
HI Alberto,
Going to try this right now.
Thank you,
Ron