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: 
ananyaghosh
Creator III
Creator III

How to show a sheet show conditionally?

Hi,

I need to show a sheet when I click on a button and the intended sheet is primarily will be hidden. So when I will click the button the sheet will be displayed.

Thanks,

Sandip

1 Solution

Accepted Solutions
Anonymous
Not applicable

HI,

You have to create à variable, for exemple : vSheet=0

Then you create a button with an action that change your variable vSheet with the fonction: if(vSheet=1,0,1)

Then you will be able to show or hide the sheet with a clik on this button

In the properties of the sheet to hide, you add a condition: vSheet=1:

View solution in original post

6 Replies
Not applicable

PFA

ananyaghosh
Creator III
Creator III
Author

I am using personal edition. Can u give me some proper screen shot for that?

Thanks,

Sandip

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Create a variable called vShowHide from variable overview window give it value of 0. Then create a button right click and go to properties click Add Action Type click External in the Action section to right click Set Variable click OK. Then in the Variable enter vShowHide in the value you will have to enter if statement as possibly this

if(vShowHide = 0,1,0)

Then in the object that you want to hide when you click on the button, right click on it and go to Layout then Show click Conditional then enter

vShowHide =0 .

Finally just click the button.


satishkurra
Specialist II
Specialist II

Hi

Settings, Variable Overview - Create new variable as vShowHide and Value to 0

In Main Sheet, create a button with Action , Action type as Set Variable and Action as vShowHide=0

Create New Sheet as Sheet1 and in Sheet Properties general tab, Select Show sheet as COnditional and Specify as vShowHide=1.

No come to Main sheet and Click the button, You will see the difference.

Thanks

Satish

Not applicable

Hi Sandip,

You can either set a condition on the sheet to show/hide, set to a variable value.

hide sheet.PNG

And have your button adjust the variable your condition is running from to show/hide on the button click.

Or if you are hiding the tabrow and trying to navigate between sheets with buttons seamlessly, then you don't need a condition, just simply a button with the activate sheet action to load the relevant sheet.

activate sheet.PNG

hope that helps

Joe

Anonymous
Not applicable

HI,

You have to create à variable, for exemple : vSheet=0

Then you create a button with an action that change your variable vSheet with the fonction: if(vSheet=1,0,1)

Then you will be able to show or hide the sheet with a clik on this button

In the properties of the sheet to hide, you add a condition: vSheet=1: