Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
Highlighted
konidena
Contributor

How to create a trigger on Clear All button in the navigation tool bar

Hi Team,

I am facing a issue in my application.

I have 4 charts in one of the sheets in application.

When Activating that sheet, i have added a trigger for the field Reportmonth as Month(today()).

Also, i have a text box in the home page. I have added a trigger to this too as Reportmonth =Month(today()). when user clicks on this text box, he will be reaching the sheet which has 4 chats.

when i reached the sheet which is having 4 charts, the report month is initially having the current month as expected.

Note: I have a field called "Time measure"  with the values "MAT", "QTD", "YTD". when user selecting any other fields values and coming back to the selection MAT by clicking on Clear all, the report month selection is also cleared.



Can anyone help me like, is there any possibility to retain the report month value as the current month even user changes selection in the other fields or clicks on clear all button.


Your reply will be very helpful to me in a great extent.


Regards

Srinivas

14 Replies
Highlighted
vinieme12
Esteemed Contributor II

Re: How to create a trigger on Clear All button in the navigation tool bar

Add another Action to your MAT to select the reportmonth

Highlighted
vishsaggi
Esteemed Contributor III

Re: How to create a trigger on Clear All button in the navigation tool bar

Add another action in the Clear All Button. Like Capture.PNG

Highlighted
vinieme12
Esteemed Contributor II

Re: How to create a trigger on Clear All button in the navigation tool bar

Correct

Highlighted
konidena
Contributor

Re: How to create a trigger on Clear All button in the navigation tool bar

Thanks for your reply.

You didn't understand my question.

I have already added to the trigger to the field "Time measure" field. MAT is the value in that field.

Now, I am clicking on the Clear All button in the navigation tool bar.

I don't have any application specific button created in my application.

Regards

Srinivas

Highlighted
vishsaggi
Esteemed Contributor III

Re: How to create a trigger on Clear All button in the navigation tool bar

Would you mind sharing a sample app if possible ?

Highlighted
konidena
Contributor

Re: How to create a trigger on Clear All button in the navigation tool bar

It is in client vpn.

not possible to bring it here.  thanks you very much for your help.

is there any other ways to make it work.

Highlighted
vinieme12
Esteemed Contributor II

Re: How to create a trigger on Clear All button in the navigation tool bar

OK!

instead of using the ClearAll Button add a button with custom triggers, there is not work around for this.

Highlighted
vishsaggi
Esteemed Contributor III

Re: How to create a trigger on Clear All button in the navigation tool bar

I cant think of anything apart from Setting Always one selected value on your ReportMonth Listbox. This way even if you clear all that selected value will be in selection mode. 

Highlighted

Re: How to create a trigger on Clear All button in the navigation tool bar

How about your buttons / triggers setting a variable that can be used in Set analysis in your chart expressions.  Thus when the variable forces the expression to evaluate for your report month it will override any selections made or cleared for month.