Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Hide/Show objects based on selection............

Hi All,

In my application I am having two objects(LB06,LB07), My requirement is when I click one button will display one object(LB06) and click on second button will  display second object(LB06). Can we achieve this one.

Show_hide.PNG

2 Replies
karmariv82
Contributor III

Re: Hide/Show objects based on selection............

Hi Sharath.r:

You can achieve this using variables an triggers. For instance you can call your variable vShowObject, and set a trigger to change the value of this value when you hit the button:

1. To create variable: Go to Settings -> Variable Overview -> Add

2. To add triggers, just go to Actions tab -> Add. In action type chose External in Action field select "Set Variable". Then define the variable an value:

Captura.PNG

3. In the properties of the object that you want hide/show, go to Layout tab and add the following condition:

Captura.PNG

For the other button you just have to set your variable value to LB07, and also use this value in the other object condition.

Hope it helps.

Karla

Re: Hide/Show objects based on selection............

Please see the attached.

Go to Layout tab of list box. Check action tab of Button