Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Creator III
Creator III

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
Highlighted
Specialist
Specialist

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.

Highlighted
Creator III
Creator III

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

Highlighted
Specialist
Specialist

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

Highlighted
Creator III
Creator III

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.

Highlighted
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.

Highlighted
Creator III
Creator III

Hi,

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

Regards,

View solution in original post