Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Default Clear not clearing Calendar Dates

Hi All,

I Have a 'Fromcalendar' and 'To Calendar' with vDateMin for 'Fromcalendar' and vDateMax for 'To Calendar'.


vDateMin and vDateMax are variables.


I have set the trigger for Date Field and also for vDateMin & vDateMax variable.


But when i clear date on calendar is showing the previous selected dates.


How do i clear the calendar dates?


Please find the attached Qvw.


Regards,

Keerthi KS

1 Solution

Accepted Solutions
SreeniJD
Specialist
Specialist

Hi Keerthi,

Default clear will not clear the values in calendar objects.. Explicitly you can have a button and in the properties.. "Action->Set Variable->External->select "vDateMin" set Null value and Add another variable ->External->select "vDateMax" to set Null..

Hope this is useful

Sreeni

Button to Null.JPG

View solution in original post

8 Replies
tresesco
MVP
MVP

While setting min/max values to the variables, use set {1}, like:

=Max({1}Date)

PFA

avinashelite

you can do it in two ways.

1.On Document open you can set the variables to min and max values or non

2.Add a clear selection button and add action to set the variables as per your requirement , note in  the access point you need to use the clear selection button create by you not the clear selection provided by default at the top 

Not applicable
Author

Hi Tresesco,

This works and i can select the date from calendar but it shows the previous selected dates.

Will it not be set to Min and Max date on clear.

Regards,

Keerthi KS

Not applicable
Author

Its not possible with the default clear  ??

avinashelite

no, if you use default clear . It will simply clear all the section but your previous selected date values remains same

SreeniJD
Specialist
Specialist

Hi Keerthi,

Default clear will not clear the values in calendar objects.. Explicitly you can have a button and in the properties.. "Action->Set Variable->External->select "vDateMin" set Null value and Add another variable ->External->select "vDateMax" to set Null..

Hope this is useful

Sreeni

Button to Null.JPG

tresesco
MVP
MVP

You could create another variable to track Date field value change (vChangeDate) and use a trigger OnChange action of the variable to reset the variables values. PFA

wallacechen
Creator
Creator

I did the exact same thing. When click clear selection , everything is working fine. Nevertheless, calendar selection got future years till 2029 as attached.  is it possible can set the calendar without these future years not existing in the dataset ? thanks