Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Clear Button Selection

Hi Guys,

I am using a button object to select multiple field and it is working fine.

My requirement is, If I select Button Object, it should display the multiple selections and if I select a button for the second time it should clear selections made before.

Can anyone give me the solution?

Thanks in advance!

Regards,

Varun

1 Solution

Accepted Solutions
Not applicable

You may need to Button objects one Button select selections & other button object Clear selections.

Write conditional show expression on the object to hide & show:

Not getselectedcount(Field1) --> Selection Button Object

getselectedcount(Field1) --> Clear Button Object

View solution in original post

6 Replies
Not applicable

You may need to Button objects one Button select selections & other button object Clear selections.

Write conditional show expression on the object to hide & show:

Not getselectedcount(Field1) --> Selection Button Object

getselectedcount(Field1) --> Clear Button Object

varunreddy
Creator III
Creator III
Author

Hi Dathu,

Is there a way to use one button object?

Regards,

Varun

Not applicable

Even though you have 2 button objects technically user have access to one button object only.

If really need only one object, then your selection string will need to change on fly like below.

IF( getselectedcount(Field1) , <dummy value> , FieldValue)

varunreddy
Creator III
Creator III
Author

Hi Dathu,

Can you brief me what the dummy value is?

Regards,

Varun

varunreddy
Creator III
Creator III
Author

Hi Dathu,

Can you explain me what not get selected count(field1) is doing here and how there are hiding?

Regards,

Varun

 

varunreddy
Creator III
Creator III
Author

Hi Dathu,

Is there any alternate to achieve this instead of using Get Selected Count?

If I use Get Selected Count, The Button is getting selected, if I choose other values from the field.

My button needs to select - BCBS, BCBS-Accuracy.

Even if I select BAU, the buton is getting activated.

Could you guide me?

Thanks in advance!

Cheers,

Varun