Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
yelin_nyu
Creator
Creator

default selection

Assume I have a field ‘MonthName’ with values Jan, Feb, Mar…Dec.

I want a List box where the user can select one or more
MonthName … but I need Dec to always be selected (even when ‘Clear’ is hit)

Any ideas?

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

Document Properties -> Trigger -> Field Event Triggers: Month -> OnSelect -> Select in Field

Field:

Month:

Search String

=If(GetSelectedCount(Month) > 0,  '(*'&GetFieldSelections(Month,'*|*')&'*|*Dec*)' , 'Dec')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

8 Replies
Not applicable

Hi Yelin,

Select the month of December, va on properties on the General tab and check the option:

Always one selected value

best regards

amars
Specialist
Specialist

Hi Yelin,

Refer to the below link (http://qlikshare.com/856)

It should help you identify ClearAll event. On ClearAll you can put one more action to select the Dec Month.

Thanks...

Not applicable

Hi Yelin,

What do u really want to achieve? There may be some other work around, but for that you have to explain more in detail what you actually need.

Below are some of the possibilities that you need

1. Set analysis in expression for month of Dec

2. Some action triggers in the sheet property

3. or a macro


Not applicable

Hi,

Use the trigger Select in Field after you do "Clear All" action is performed.

See the attachment.

Not applicable

You can apply the december month on a trigger Select in field when Clear All action is applied.

yelin_nyu
Creator
Creator
Author

I need a LED/checkbox lixt of the 12 months and Dec is always selected, even if they select other months/unselect them.

If I select Jan and Mar, my final outcome is Jan, Mar, and Dec.

MayilVahanan

Hi

Try like this

Document Properties -> Trigger -> Field Event Triggers: Month -> OnSelect -> Select in Field

Field:

Month:

Search String

=If(GetSelectedCount(Month) > 0,  '(*'&GetFieldSelections(Month,'*|*')&'*|*Dec*)' , 'Dec')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.

Regards,

Jagan.