Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide/View sheets & objects

Hi All,

I know that we can control of Sheet/Objects view/hide via expressions.

Is there any possibility of hide/view Sheets/Objects using script. There are lot off conditions, I would like to write in Script.

Thanks

2 Replies
Not applicable
Author

I don't believe you can invoke methods or properties of sheet objects through the load script, but I would be very curious to see what others propose.

One approach may be to use Macros, but this might not necessarily line up with what you are trying to accomplish.

JonnyPoole
Former Employee
Former Employee

You can use the 'SET' command in the script to assign a long expression like the following (which isn't that long)

SET  vShowHideExpression= ' =Sum(Sales) > 10 and Count(Customer) < 20' ;

This will add a variable to your application which can be used in the Show/Condition expression on the layout tab in the properties of the object you want to hide.

in this situation the expression is physcially written in the 'script' per se but i'm not sure if that is your lone objective.