I am trying to build a button that when clicked, it will display 5 different line charts, and a button to make the line charts hidden.
Here are my steps on creating the “on” button. I would be very appreciated if someone can point me on the right direction. Also, I am using the Free Form layout.
1 - Created a parameter named Details, with the following conditions:
Data Type: String
Values: Single Value
Static Single Value
Static default Value: Show
2 - Set the Visual to “Hide by Default” and create a rule with the parameter that I created, with the following conditions
Condition: Contains
Value: Show
Action: Show this visual
3- Create a Custom Visual with a image, and then define a Action
Hi @miguelantunesp and welcome to the Quick Suite Community!
You’re definitely on the right track; the first thing I’m noticing would be your in your action setup. You’re correct in utilizing a navigation action so that you can bring in the parameter; but when you’re adding the parameter, you’ll want to change the ‘set parameter value’, instead of using the ‘all values’ option, use the ‘custom’ option instead and put ‘Show’.
That way, when you click your custom image, it will set the parameter value as ‘Show’ and will then activate your rule.
I tried to implement your suggestion, and when I edit the Action tab on my icon, it worked once and now is always showing the visual.
Now I need to create a new icon to hide again I believe. But I am struggling again on how to do it. I will post here my steps as I did above, if you could give me a hand I would be very appreciated again:
1 - Created a parameter named Hide, with the following conditions:
Data Type: String
Values: Single Value
Static Single Value
Static default Value: Hide
2 - Created a rule on the visual that I want to hide now with the new parameter “Hide” , with the following conditions:
Condition: Contains
Value: Hide
Action: Hide this visual
On this step the rule seems is not applied, as shown bellow: