Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
neha_sri
Contributor 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.

Tags (3)
5 Replies

Re: Set undefined value to variable

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
Valued Contributor II

Re: Set undefined value to variable


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
Contributor III

Re: Set undefined value to variable

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

Re: Set undefined value to variable

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
Valued Contributor II

Re: Set undefined value to variable

Please see the attached  pic for triggers.Doc_open_trigger.png