Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Variable a Default Value

I have defined one variable "var_zoom" and created a slider.

Although I have got the desired behaviour, I have noticed that, when I click on "Clear" button, that does not affect the niether slider nor the variable nor the whole QlikView sheet.

Why is that? Is it possible to override this behaviour? In bottom line is it posible to set a default value for a variable?

4 Replies
Not applicable
Author

This will allow you to give the variable a default value when you open the document

Document Properties -> Triggers -> On Open -> Add Action -> External -> Set Variable

But you also want it to reset when there is a "clear" on the document?

Gysbert_Wassenaar

The clear button only clears selections. It does not change variable values. You need to use a Set Variable action to change a variable. You could use a button to execute both a Clear All action and the Set Variable action.


talk is cheap, supply exceeds demand
Not applicable
Author

Exactly - I want it to reset when there is a "clear" on a document.

Not applicable
Author

So add a button that clears selections and resets the variable in two separate actions