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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Capturing Chart maximised/Minimised state in Variable

Hi ,

I want to capture whether a partcular object is maximised /minised whenver its state gets changed.

Could anyone help me out?

4 Replies
amars
Specialist
Specialist

Hi Blessy,

You can write a macro like this

set c=ActiveDocument.GetSheetObject("CH01")

if c.IsMaximized then

set StateID = ActiveDocument.GetVariable("vState")

StateID.SetContent "Maximized" ,true

else

set StateID = ActiveDocument.GetVariable("vState")

StateID.SetContent "Minimized" ,true

end if



Not applicable
Author

Hi,

Thanks.

But where can I call this macro.it should dynamically update the varaible whenever state gets changed.

Not applicable
Author

Hi,

You can add a trigger for the Variable in the Variable Event triggers, for OnChange listener.

Here:

Settings>Document Properties>Triggers

Reply if you could set the action or not.

Regards,

-Karthik

Not applicable
Author

Hi Karthik,

You can't use like that.