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

Display if

Hi,

can I display an object only if another object is maximized?
Problem is that I have an object that should be only shown in combination with another one.

Thanks

1 Reply
eiconsulting
Partner - Creator II
Partner - Creator II

What triggers the macro depends on the app, probably activating the sheet. I tried with a button.

Didn't use IsMaximized because it was not working with the chart in a normal position (such as after a Restore). If you really Maximize it full screen change.

I created a variable vSeeMee1. Added vSeeMee1=1 as a conditional function to Show in the Presentation Tab

[code/]

sub maxim_maxim
set maxim1=ActiveDocument.GetSheetObject("CH01")
set v = ActiveDocument.Variables("vSeeMee1")

if (maxim1.IsMinimized=false) then
v.SetContent "1",true
else
v.SetContent "0",true
end if
end sub

Federico Sason | Emanuele Briscolini