Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Highlighted
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
MVP & Luminary
MVP & Luminary

Re: Info about Minimized/Maximized state of an object

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
Honored Contributor III

Re: Info about Minimized/Maximized state of an object

Mancini ,

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

MVP & Luminary
MVP & Luminary

Re: Info about Minimized/Maximized state of an object

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

Not applicable

Re: Info about Minimized/Maximized state of an object

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
Valued Contributor III

Re: Info about Minimized/Maximized state of an object

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
Honored Contributor III

Re: Info about Minimized/Maximized state of an object

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