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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I show/hide a specific button based on whether a particular container object is selected

Hi there

I would like to know how to show or hide specific buttons based on which chart in a container I have currently selected. I have a set of buttons but each button should apply to only one chart in the container, so I want to hide the irrelevant buttons for the currently selected chart aond only show the button that is relevant to that chart. How would I do this using the Conditional Show/Hide option in each button?

Thanks

5 Replies
Not applicable
Author

Hi Jason,

You can try creating groups if you need only specific container to interact and that should be independent.

For buttons, in the layout tab you can show the button conditionally wherein you can have expressions defined.

Thanks,

Sai

Not applicable
Author

Thanks, but I am aware of how to show the buttons conditionall, that's not the hard part. The hard part is identifying which particular object in the container the user has clicked on. How do I access that selection prograammatically so that I can use it in the conditional logic that determines whether the button is shown or hidden?

Not applicable
Author

Jason,

You can try: =len(getcurrentselections(FieldName))

Try to put this condition in the properties-> Layout->Show->Conditional->Paste the condition.

This will automatically show/hide based on the field selection you are looking for.

Thanks,

Sai

tresesco
MVP
MVP

This is not directly possible as of now. An idea http://community.qlik.com/ideas/2019 has been proposed, you might want to vote there.

Not applicable
Author

Thanks tresesco, not what I'd like to hear but nothing I can do about it at the moment.