Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

How to display or hide objects

I have two different objects (graphics) that can not be displayed at once. The display rule is simple:  If no filter is selected

I display object A, but if a filter was done, I display the object B.  How do?

1 Solution

Accepted Solutions
AlbertoV
Contributor III

Re: How to display or hide objects

Hi Roberto,

I would use the show conditional in Properties > Layout > Show

Type in GetSelectedCount(CompanyField) = 0 on the Chart to show when no company is selected and > 1 for the other.


Hope this helps...

8 Replies
Employee
Employee

Re: How to display or hide objects

Hi,

In the Calculation Condtion is where you would put the vaule to show or hide. As an example if I put in =0 it would hide the information.

Untitled.png

Bill

Re: How to display or hide objects

Hi

PFA

Not applicable

Re: How to display or hide objects

Ok, but my question is how to put the rule. The rule to show or hide the object is the existence (or not) of selection in a list. For example, I have a list with 3 companies. If no company is selected, I have to show a graphic, but if one or more are selected, I have to show another chart and never the two graphs at the same time.

Employee
Employee

Re: Re: How to display or hide objects

Hi,

This should help. All I'm doing is changing a variable value.

AlbertoV
Contributor III

Re: How to display or hide objects

Hi Roberto,

I would use the show conditional in Properties > Layout > Show

Type in GetSelectedCount(CompanyField) = 0 on the Chart to show when no company is selected and > 1 for the other.


Hope this helps...

Not applicable

Re: How to display or hide objects

Ok, I understand what you did ... but unfortunately does not help me yet ... you are showing the object according to the variable and you use an object action button to set this variable. My problem is how to identify (can be a variable) whether there is any selection made one a specific list. Example: I have a list object with 3 companies, one or more companies have been selected, show an object, if none selected, show another company.

Not applicable

Re: How to display or hide objects

Thank you, tested and really do what I need. But my problem now is another. I need to show a graph or the other, but when one of them does not meet the condition "GetSelectedCount (CompanyField)" it's still there, but a text showing that the condition was not satisfied and calculating overlapping the chart that I need to show. Can you help me with this?

Employee
Employee

Re: How to display or hide objects

Hi,

Yes, you set this on the general tab with the error button.

Bill

Community Browser