Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Button help

hieee

will you please tell me how to use buttons in hiding and unhiding objects and other uses also like minimize

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

1) Hiding:

     - define a variable in the script e.g. LET myVar = '0';

     - in the button use a trigger -> add -> external -> set variable;

          in the upper box write myVar

          in the bottom box write : if(myVar=0,1,0)

     - in the object you want to hide: in presentation -> show write: myVar=1

2) Minimize: do not use minimize but hide/show the chart

Hope it helps

Let me know

SunilChauhan
Champion II
Champion II

see the attched file

hope this helps

Sunil Chauhan
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Akash.

Have a look at this blog on buttons.

http://www.quickintelligence.co.uk/qlikview-buttons/

It shows you when and how to use them with working examples.

Regards,

Neil

Anonymous
Not applicable
Author

For basic buttons: On the button under properties choose the action tab. Then click 'Add'. For minimizing, maximising etc the actions are under the layout action type. Choose the action you want the button to do, then click OK.

If you want to hide or show something depending on what the user wants to see you can do that with triggers on sheet objects such as text boxes. Create a text box.  Under Settings on the main Qlikview menu choose Variable Overview. Then click Add. Call the variable whatever you want to eg 'vTrigger'. In the text box properties, choose Actions, the Add, then under action type 'External' choose 'Set Variable'. You can then define the value you want the variable to have when the button is clicked. It doesn't have to be a number. In the chart that you want to show or hide in the Properties go to the 'Layout' tab.  In the 'Show' box choose Conditional.  If you have called the variable vTrigger and set the value as 1 when the button is clicked then the expression next to 'Conditional' should be vTrigger=1.  This means that the chart will only show when the variable is 1 (i.e. when the button is clicked)

maleksafa
Specialist
Specialist

Hi,

add a button and declare a variable (for example vShowChart), in the button go to action -> external -> set variable and set the variable vShowChart to 1, then go to the chart and under Properties -> Layout -> Show -> Conditional and then add $(vShowChart) = 1.

You can also use a container if you want to show/hide multiple charts.

As for the minimize, no need to do anything from the chart, you can from the button go to action -> layout -> Maximize object/Minimize object and there add the chart ID.