Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
desert_dweller
Contributor
Contributor

Mashup with multiple pages from single App/Selection Preservation

Hello,

I've seen several threads on this topic, but all from several years ago. 

Requirement: Multi page mashup (all pages from same QS app). I need to preserve selected values between pages and when user returns to original page I clear one of the applied filters.

I have this set up with two javascript files, and it works as long as I have dev hub open. But as soon as I close dev hub selections are not preserved between pages.

I'd rather not create a single page app with a bunch of hidden divs, but that seems like the best way I've seen?

Any advice appreciated.

Labels (3)
1 Solution

Accepted Solutions
hakana
Employee
Employee

Have you tried setting the TTL on the URL? https://github.com/qlik-oss/enigma.js/blob/master/docs/api.md#sense-utilities-api

If you don't provide a TTL the session will be closed when you go to a new page and clear any selection (I think)

View solution in original post

2 Replies
hakana
Employee
Employee

Have you tried setting the TTL on the URL? https://github.com/qlik-oss/enigma.js/blob/master/docs/api.md#sense-utilities-api

If you don't provide a TTL the session will be closed when you go to a new page and clear any selection (I think)

Damien_Villaret
Support
Support

As @hakana mentioned, the easiest way to solve this scenario nowadays is to use the TTL settings.

You can either have it in the URL for a specific session, or you can set it in the Engine settings.ini file so that it's global on the server.

https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-All-you-need-to-know-to-start-using/t...

https://community.qlik.com/t5/Knowledge/Adjusting-the-Qlik-Sense-Engine-TTL/ta-p/1713815

 

If the issue is solved please mark the answer with Accept as Solution.