Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set a variable when sheet is active

Hi experts.

I need set a variabe when the sheet is active for example I have te variable CAL with tree values M1,M2,M3

and I need by default M1, of cours permited selects the other values but when change the tab or open the

report by default in M1.

any idea?

best regards.

1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

The sheets have an 'on activate' trigger and a 'on leave' trigger.

When users activate the sheet, you can use a 'set variable' action to set the variable.

When they leave you use the same action to alter the same variable accordingly.

The triggers are on the sheet properties / triggers tab.

View solution in original post

3 Replies
JonnyPoole
Former Employee
Former Employee

The sheets have an 'on activate' trigger and a 'on leave' trigger.

When users activate the sheet, you can use a 'set variable' action to set the variable.

When they leave you use the same action to alter the same variable accordingly.

The triggers are on the sheet properties / triggers tab.

m_woolf
Master II
Master II

Set an OnActivate trigger for each sheet that assigns the variable value

Not applicable
Author

thanks a lot Friends.