Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to set the default current year and current month

Hi,

   I need a solution how to set the default current year and current month while clicking clear all ,

please help me out from this

Screenshot (3).png

Regards,

Vijay.M

16 Replies
Anonymous
Not applicable
Author

Hi,

In Qv Desktop, select your latest Year and month and/or other fields you wish to have default values for.

click the dropdown arrow on the clear button and select "Set Clear State".

This will allow you to keep default selections when clear is selected.

Only con is that you have to Overwrite the Set Clear State settings each month/year.

SetClearState.png

Hopefully this helps!

surendraj
Specialist
Specialist

Hi,

You can try it with OnOpen trigger

Document Properties > Triggers > OnOpen


here you can apply the action on current month and current year fields.


--surendra

avinashelite

In order to achieve this you need to

1.add a costume Clear button and

2.set the action under it to clear all the selection

3.Additional action to set the max year and month

Hope this helps you

Anil_Babu_Samineni

Avinash Solution Should Work if you are thinking Same way as he suggested.

Or you may use this manually

First Choose Fields as Year, Month and go to properties and then choose Always One Select Value same as Month and then Hit Clear All and then see

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

But I have doubt how it will reset month will  be change jan to feb

Anil_Babu_Samineni

What if selections are going on? Can you describe more

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

ya i explain  for example right now current year is 2017 Jan month   while user cliking clear all it will show default year and month  by using set clear state ok. But if the month goes feb  how it ll be change whether it ll change default or we have do any script  manually  this is what my question

Regards,

Vijay.M

Anonymous
Not applicable
Author

Using the set clear state method I posted above, You will manually select Feb and then select set clear state again so that Feb becomes the new default value when clear is selected.

Anonymous
Not applicable
Author

so month will not change  by default right!