Updating changed data, for all users looking at web viewer, in timely manner, as needed without d...

Hi all.

As we know, in a FileMaker record, if any data changes, that data is reflected for all users on the network almost immediately, without any kind of update script, etc. needing to be run. FM’s worked that way since forever.

But working with JS in web viewers, if data changes (an appointment in a calendar, a row in a DataTables table, some data point in a chart, etc.), something in the web viewer needs to be refreshed for everyone on the network who might be looking at it.

There are ways to trigger a FM script for all users on the network to update their web viewers — on a timer, or as needed via something like socket.io — but whenever a script runs in FMP it blocks everything else. So even if it only takes half a second to run, if a user tries to click on a button or into a field or anything else in that half second, then the click doesn’t happen, FM beeps instead, and it’s quite jarring as a user experience.

So I’d love to know if there’s some way of achieving the update in the web viewer, without running a FM script in every user’s FMP.

One option that comes to mind is have the JS in the web viewer query the FMS Data API, but that could get expensive real fast since that data goes against the Data API annual limit (whereas the Execute Data API script step does not).

I can’t be the first person to come across this issue… Does anyone have any solution to this? Or any ideas?

Thanks in advance!