Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
neha_sri
Creator III
Creator III

Set undefined value to variable

Hi all,

I have multiple variables in my qvw and I want to set a trigger which will set undefined value to all variable on opening the document.

Is there a way out to do so.

Thanks in anticipation.

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Unfortunately you cannot do it unless you specify all the variables and set every one to your specified value.

You can do it in the script.

Hope it helps

PradeepReddy
Specialist II
Specialist II


Hi Neha,

If I understand the requirement in correct manner, U want to set all the varibles to predefined values.

If so, try to use the onopening from Document triggers.

neha_sri
Creator III
Creator III
Author

Yes, I want that on open the variable should not have any values. User will input the value, but at present my

variables are holding the last given values.

Not applicable

go to document properties->triggers tab->

do the followings

snap1.png

snap2.png

snap3.png

set value as blank or space

snap4.png

I input vInput value as 10

I closed the document and reopen it then value for vInput is

snap5.png

PradeepReddy
Specialist II
Specialist II

Please see the attached  pic for triggers.Doc_open_trigger.png