Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
absekrafi
Creator III
Creator III

Input box

Dear community,

I added an input box where I enter startdate and enddate in addition to other dimensions.

I have also a "clear selections" button.

I want, when I press the "clear selections" button, all dimensions selections get cleared and the input fields startdate and enddate remain as they are.


is it possible to achieve that?

Thank you,

1 Solution

Accepted Solutions
absekrafi
Creator III
Creator III
Author

Hi,

I've got the answer. It's "clear all except field" and you specify the field.

Regards,

View solution in original post

6 Replies
chrismarlow
Specialist II
Specialist II

Hi Abdallah,

What action is on your clear selections button, as (for me) Clear All seems to leave variables within input box are not changed.

Regards,

Chris.

absekrafi
Creator III
Creator III
Author

The action in my clear selection button is : Unlock and Clear all.

chrismarlow
Specialist II
Specialist II

I cannot replicate that. Your variables are just normal entry, nothing unusual about them?

absekrafi
Creator III
Creator III
Author

The 2 variables are in date format and they are normal entries.

I set vStartDate = YearStart(Today()) and vEndDate = Today().

These 2 variables can get values between 01/01/2012 and today.

The other dimensions are region, factory, product and sub-product.


I set vStartDate = '01/01/2012' and vEndDate = '31/12/2012'.

When I push "clear selections" the 2 variables become : '01/01/2018' and '08/11/2018': this means that they are cleared too.

passionate
Specialist
Specialist

You can do try adding Calendar objects in some other alternate state.
or
if you motive is to keep start and enddate remain same after clear selection then lock selection on start and enddate.

absekrafi
Creator III
Creator III
Author

Hi,

I've got the answer. It's "clear all except field" and you specify the field.

Regards,