Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
gopal5879
Creator
Creator

Guys How can I clear Variable used in Calendar Control using Clear option in Menu. Need some help





Need do clear variable used in a calendar controls  using clear menu option. Variable used are vStartPeriod and vEndPeriod.

Can someone help me or give a hint?

1 Solution

Accepted Solutions
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Gopal,

The "Clear" button on your screenshot only refers to filter selections made by the user (assuming they're not with the "Always one selected value" checked).

Since it's a variable, you would have to create a button with two actions:

- Selection -> Clear all

- External -> Set Variable -> vStartPeriod  into "Variable" input box, and Empty string on "Value" box.

- External -> Set Variable -> vEndPeriod  into "Variable" input box, and Empty string on "Value" box.

Then, by clicking the button you would clear all selections and both variables would have no values.

Felipe.

View solution in original post

3 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Gopal,

The "Clear" button on your screenshot only refers to filter selections made by the user (assuming they're not with the "Always one selected value" checked).

Since it's a variable, you would have to create a button with two actions:

- Selection -> Clear all

- External -> Set Variable -> vStartPeriod  into "Variable" input box, and Empty string on "Value" box.

- External -> Set Variable -> vEndPeriod  into "Variable" input box, and Empty string on "Value" box.

Then, by clicking the button you would clear all selections and both variables would have no values.

Felipe.

gopal5879
Creator
Creator
Author

Thanks a lot Felip. Appreciate your help very much

felipedl
Partner - Specialist III
Partner - Specialist III

Hi Gopal,

Could you mark the answer as "Correct" if it helped you?

Thanks,

Felipe.