Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle feature works with a button that has up to 3 actions #1

Open
joaste1 opened this issue Jun 1, 2023 · 3 comments
Open

Toggle feature works with a button that has up to 3 actions #1

joaste1 opened this issue Jun 1, 2023 · 3 comments

Comments

@joaste1
Copy link

joaste1 commented Jun 1, 2023

Hello,
I have a button which applies 4 actions. Each action is set to Toggle.

When I click the button the first time, it exeutes the actions (i.e. applies filters on the data). When I click it the second time, it starts removing the filters but then reapplies some of them.

Removing one of the actions solves this (i.e. only having 3 actions). When clicking the second time on the button, all filters are removed.

I have tried by removing different actions and the result is the same. 3 actions works, More than 3 actions and the Toggle fails to undo all actions.

@joaste1
Copy link
Author

joaste1 commented Jun 1, 2023

An additional point, there is no action for "Clear all selections", which seems odd. I tried to replace it with a "Apply bookmark" action before the above mentioned actions (to clear any selections before the button actions are executed), but this ha the effect of not applying the last action of the button. Clicking the button a second time would correctly apply all selections from the remaining actions.

@joaste1
Copy link
Author

joaste1 commented Jun 1, 2023

PS: I'm using Beta 1.4

@lmoffereins
Copy link
Contributor

Hi @joaste1 thank you for reporting this. The issue is clear, but I am not able to replicate it using Qlik Cloud with the latest version of the extension. Based on the default Qlik data model (created with shortcut ctrl+0+0) my selections on 4 different fields are sequentially executed as expected. Also I found no difference in effect from the Replace or Toggle modes.

In response to your additional point, yes there actually is an action for clearing all selections. Following the documentation for the Clear field selection action, you can clear all selections by selecting this action and leaving the Field input blank. This will be interpreted as a clear action for all fields.

Both solutions are captured in this recorded session.

Please consider trying this in a smaller app with a simpler data model to find if the issue still shows. If so, perhaps you could share some more details about your situation (QS environment, app data model) to help me better understand the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants