Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Benbassou
Partner - Contributor III
Partner - Contributor III

Keep variables values after the reload

Hello,

I have a problem with variables when app get reloaded.

Let me use a simple example to understand the stuff:

  - Suppose that i have a document with a variable vTest.

  - I publish the document on the server with the variable vTest configured with default value 1

  - A user modifies the contents of the variable [vTest] to 5. If, during user's analysis, the document is reloaded on the server (data is updated), the content of the variable is automatically set to the default value 1.

I don't wanna this behaviour, i need to keep the user defined value 5 even after the reload

Does anyone have had that problem before and how to keep variables values ?

Thank you for the help

17 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

I couldn't find the article outlining how to use Google Sheets for inputting Variable values and the Qlik app to load the variables from Google Drive.

Benbassou
Partner - Contributor III
Partner - Contributor III
Author

it's really a very good idea but in my case the application is used by several users and the value of the variable varies according to each one of them.

In the script its hard to update variable value according to each users or there is a method to do that ?


thank you,

Best regards,

sauliusr
Contributor II
Contributor II

Just mark this variable for inclusion in bookmarks and it will survive reloads. (Settings > Document properties > Variables > Settings for Selected Variable > Include in Bookmarks).

Benbassou
Partner - Contributor III
Partner - Contributor III
Author

Thank you very much Saulius

It's exactly what i was looking for.

morenoju
Partner - Specialist
Partner - Specialist

Hi, do you know of any way to do this in Qlik Sense?

michael_klix
Creator II
Creator II

Any response meanwhile how it works in Sense? I would like to use a user defined variable during a user-triggered partial reload, but it seems during the reload, a variable that is defined in the frontend does not exist.

johnson532
Contributor II
Contributor II

hey. 
let me tell my experience.

i use this steps to create a variable

Settings -------> Variable Overview --------------> Add

regards

 


Cyrpyo Minning Guide

johnson532
Contributor II
Contributor II

I would guess that you are defining in Script something like

 

LET vTest = 1;