Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Info about Minimized/Maximized state of an object

Hello, I need to know if a particular object (identifed by its own ID) is minimized, maximized or normal view.

Is there a way to do this? I've not found any function...

Thanks, Regards,

f.

1 Solution

Accepted Solutions
marcus_sommer

This is only per macro possible, see here an example from APIGuide.qvw:

rem ** reverse maximize status for chart CH01 **

set c=ActiveDocument.GetSheetObject("CH01")

if c.IsMaximized then

    c.Restore

else

    c.Maximize

end if

- Marcus

View solution in original post

5 Replies
sujeetsingh
Master III
Master III

Mancini ,

It is really a good question and now i am to keen to know the answer let us see what we conclude.

marcus_sommer

This is only per macro possible, see here an example from APIGuide.qvw:

rem ** reverse maximize status for chart CH01 **

set c=ActiveDocument.GetSheetObject("CH01")

if c.IsMaximized then

    c.Restore

else

    c.Maximize

end if

- Marcus

Not applicable
Author

Yes, i've seen this, but using a macro I think is not possible to:

  • Use object name as parameter (AFAIK is not possible to pass a parameter to a function in a macro)
  • Call the macro from a expression (but i'm not pretty sure of this)

However Macro approach can be a good idea...

Thanks,

f.

rajeshvaswani77
Specialist III
Specialist III

In the Chart Object you can right click, go to actions. Set variable varname and put the value under Value. Use

 

set ControlID = ActiveDocument.Variables("vControlID")

to set the ControlID in macro code. Later you can chnage properties of this.

thanks,

Rajesh Vaswani

sujeetsingh
Master III
Master III

From where we get the option of action in a chart object