Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Macro Maximize and Minimize Object

Hi experts,

I did two buttons that have a macro with the following code:

MACRO.png

CHART.png

However, as the code is not optimized, when I double click on the button 1, it minimizes the graph referring to it and shows the graphic for the button 2.

It is easy to see that this is because there is nothing in the code that do: "If the chart is maximized, keep maximized until another button is clicked."

Someone who understands VBscript can help me in this code?

Thank you

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Alex,

In this case, you can use conditional show and hide option. I have attached a sample file for your understanding.

View solution in original post

2 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Instead of using macros , why dont you use auto minimize option on the charts.

First ,

  1. Create  the different charts and check the below  options marked in red.
  2. allign all the minimized charts on left hand side.
  3. whenever a chart is selected, it will expand,  on selection of other chart the first one will minimize automatically.
  4. the only limitation it has, only one chart is displayed once.

Autominimize.PNG

tamilarasu
Champion
Champion

Hi Alex,

In this case, you can use conditional show and hide option. I have attached a sample file for your understanding.