Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Vbscript to visible or invisible a Container

Hi all,

I have a button and want to add an action to visible and invisble another Container.

Could anyone give me an example, how to write vbscript to achieve this function?

Any help will be appreciated.

1 Reply
Not applicable
Author

Create One variable like..

vHideContainer = 0 //Default value '0'

Then add one button (Name it as Hide)..

Right click on Button... Properties --> Action --> Add --> External --> Set Variable -->

In Variable InputBox type as 'vHideContainer' [Without quotes] --> In Value Box type as '1'[Without quotes]

Now go to Container Object Properties --> Layout --> Show -- Set as 'vHideContainer=0'[Without quotes]

So now If you click on button (hide)...

Value of variable will change as '1' and you container will hide..

Now you have to create one more button for 'Show'.. Same procedure you can follow as like above and set variable as '0'..

Hope it helps you..

Regards,

Karthik