Fail to reload Qlik Sense dashboard app through engine api and websocket
I have created a Qlik Sense Desktop applikation and I want update it every five minutes and show it as a dashboard in a web page as an embedded iFrame configured in the Single configurator.
I have made a script that connects to the engine api through a web socket and sends openDoc, doReload and saveObject every five minutes. The script runs without errors. The script log is generated, the qvf file is updated and csv-file is exported correctly at the end of the script but the data in the application is not updated.
In the script I create a variable as let vDate = now(); which I show in a text box and that value is updated but nothing else in the GUI. My only explanation to this is that the data in the application is never updated when the script runs.
How could I script the reload of an application through the eninge API?
Do I need to save the data after reloading the application?
Below is my html page embedding the dashboard with a script reloading the application every five minutes: