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: 
avantime
Creator II
Creator II

LIST BOX - If none selected, select all

Hi

In the attached app I am loading 5 items, A, B, C, D, E.

In a listbox I am showing only A B C D, without E. I am also preselecting these 4 values.

The problem is that after I select one or more items in the listbox, once I clear the selection E is also selected by default.

How can I force the listbox to select ABCD by default?

Hope I made myself understood .

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be like attached sample.

View solution in original post

17 Replies
sunny_talwar

When you clear E is also selected? How can you select when you press clear? I am not sure how you are clearing? Can you explain?

surendraj
Specialist
Specialist

Select 4 at a time...(A,B,C,D)

enable-->set clear state--->save-->colse the app.

By your on open trigger it will defaultly show 4 selected values.

now even you clear selections, that are not cleared till you press reset clear state.

avantime
Creator II
Creator II
Author

Check attached,

When I click "Clear selections" I want need the total value to be 10 (Select only ABCD).

sunny_talwar

Then use set analysis to exclude it?

Sum({<ITEM -= {'E'}>}VALUE)

or

Sum({<ITEM = -{'E'}>}VALUE)

tresesco
MVP
MVP

May be like attached sample.

avantime
Creator II
Creator II
Author

Yes, exactly like that

Can you please explain what you did?

avantime
Creator II
Creator II
Author

I know how to exclude E from Sum, this is not what I need. I need to apply this selection over tens of formulas.

sunny_talwar

Very smart tresesco

He added a trigger to OnAnySelect

Capture.PNG

avantime
Creator II
Creator II
Author

Works like a charm. Thank you!