Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
_ingo_
Contributor II
Contributor II

How to detect a full/partial reload using the JavaScript API

Hi, I have an extension I'm developing to write back data into some tables. The problem I'm having is that if multiple users are writing back data in the same app, the data in the front-end does not get synchronized between all users. With every user update I store the write back tables to QVDs. So if user 1 submits new data, this data does not show up for user 2. If user 2 submits some other data, whatever user 1 submitted gets overwritten. So I need to detect when a user submits new data so all other users will get a refresh of the write back tables and have the same data basis.

Is there a way to detect when a partial reload is triggered, or is there some reload event I can add a listener to?

Labels (4)
2 Replies
alex_colombo
Employee
Employee

Hey @_ingo_ , the only way I see here is to create a reload task on QMC, and then use QRS APIs for monitoring the task and see if it is running or not. If it is running then you could block your write back process.

Another way could be to create a kind of backend service (similar to VizLib server for VizLib writeback), which can manage cucurrent modifications locking your reload when a user is performing a write back or create a kind of queue. Furthermore you can handle permissions to the write-back destinations with security rules. No need to grant the users full access to the data connection used, which can be a big security risk.

_ingo_
Contributor II
Contributor II
Author

Hello Alex, thanks for your suggestions. I was starting to look into QRS when I decided to take a last look into the Capabilties API. I don't know why I didn't see this before, but the Global object has a "getProgress" method that seems to offer exactly what I want. I'll check this out first.