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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

help in macro

Hello

I have a qvw document with one sheet this sheet contains several sheet charts

some of these charts are minimized by default

other are maximized

what I want is that when a user clicks a button all charts be minimized

but when the user clicks the button again the charts that were not minimized be resored

Please advise

I can walk on water when it freezes
Labels (1)
2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Add Layout | Minimize Object and Layout | Restore Object actions to your buttons. You can combine any number of actions for each button click.

On the buttons' Properties | Actions tab click Add and select the actions above. You can find the Object ID for each chart on the Properties  | General tab for each object.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Siva_Sankar
Master II
Master II

Hi,  You can use the following macro code for minimizing... add macro        sub Minimize  ActiveDocument.GetSheetObject("CH03").Minimize  ActiveDocument.GetSheetObject("CH08").Minimize  ActiveDocument.GetSheetObject("CH09").Minimize  ActiveDocument.GetSheetObject("CH11").Minimize   .  .  .  .  .  .  ActiveDocument.GetSheetObject("CH20").Minimize  end sub    Similarly for maximize too...  Hope it helps..  Regards. Siva