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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to link calender object with a button??

hi all,

Can anyone tell me how do I connect a calender with a condition/trigger??

like I have attached a file where I have a button which has yearly and monthly both in it.but I have 2 calender objects,I want calender 'a' to be shown when year is clicked and hide 'b' and on re-click I want calender 'b 'to be displayed and hide 'a'.I tried using the object trigger ,But just dint work,and dint find how to connect this.Please can someone help .

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

PFA.

Hope it may help.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi,

PFA.

Hope it may help.

Not applicable
Author

hi,

you can do this using conditional show option in layout tab ,

first create two variable vA and vB for each calendar object set vA=1 and vB=0,

Add 2 set variable action in button for each of the variable and in value give this expression

if(vB=1,1,0) for vA

if(vA=1,1,0) for vB

I have also attached the QVW.

Regards,

Vivek

Not applicable
Author

You can Achieve it through a button and a variable.

Create button and a variable.

Now set an action on Button :

Action-->Set Variable

Variable : vShow

Value  :  =if($(vShow)=1,0,1)

Now on Calender A ;

Action-->Set Variable

Variable : vShow

Value  :  =if($(vShow)=1,1,0)

On Calender B :

Action-->Set Variable

Variable : vShow

Value  :  =if($(vShow)=1,0,1)

Not applicable
Author

thanku all for the valuable response