Unable to carry forward selections on mashup
Article Number: 000049478 | Last Modified: 2018/09/16
If an HTML with a one or more Qlik Sense object has a link to another HTML with one or more Qlik Sense object from the same app, the selections made in the first sheet are not normally not retained. Even the selections in the current sheet are lost if the page is refreshed.They have been seen to be preserved, however, under the following circumstances:
- If Qlik Sense hub or dev hub is open in another tab of the same or different browser.
- If the link to the other sheet is opened by 'Open in a new tab' instead of directly clicking on it.
- Once both the sheets are open and the second one has been opened by 'Open in a new tab', the selections are retained upon refresh also.
- Qlik Sense Enterprise version April 2018 and lower.
The explanation for why the selections are retained with a dev-hub session open or when we open the sheet in a new tab, are as below.
Websockets in web browsers are shared between tabs & windows, as long as you have a web-browser tab or window open with the same session as you mashup / or app, the Engine will keep the session open & active keeping the selections. Once you close all the web-browser tabs & windows and reopen your mashup, a new connection / session is created if no other is found; selections are "reset" - a web page reload will close the websocket and create a new one. The websockets in the 2 sheets have shared session with the mashup - the browsers are sharing the web sockets connection - so the Engine consider the session alive, and can be reused (selections are kept) no matter if you reload the page - upon creating the new socket - the Engine sees that a session already is live and will reuse it. if on the other hand, you close the other tabs, on mashup reload, a new websocket is created => the Engine will check if there any "active" session => none was found => new session (selections are "reset")
Qlik R&D have confirmed that currently there is no feature to directly support carrying forward selections to multiple html pages. An improvement SUI-4692 has been filed by R&D to implement this feature in an upcoming release.