Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

How to conditionally show/hide objects using alternate state

Hi

I've tried to hide an object using layout condition

the object is with alternate state for Example "Group1" 

without using alternate state the condition work just fine

How do I implement the solution with an alternative state


TNX

Ariel



10 Replies

Re: How to conditionally show/hide objects using alternate state

What is the condition that you are using today? May be specify the state in your expression:

Only({StateName}FieldName) = 'Something'

Not applicable

Re: How to conditionally show/hide objects using alternate state

Thanks Sunny

today I'm using this expression on the layout condition

'GetSelectedCount(TARGET_NAME)=1'

I've tried  to use {StateName} on my Expression

LIKE

'GetSelectedCount({Date1}TARGET_NAME) = 1'

it doesn't work

rank_nandha
Contributor II

Re: How to conditionally show/hide objects using alternate state

Hi Ariel,

Hope you are using QV11 which doesn't have OnActivate triggers for objects anymore. Since you're using alternate states that means you're using QV11. So it's not possible to click on a chart and have an action take place. You could create a button to switch the visibility of the listboxes. Here's an example where a button is used to hide/show two listboxes

https://community.qlik.com/message/201149?&_ga=1.39728803.1050552181.1455190735#201149

Regards,

Nandha

Re: How to conditionally show/hide objects using alternate state

Try this:

GetSelectedCount(TARGET_NAME, False(), 'StateName') = 1

Not applicable

Re: How to conditionally show/hide objects using alternate state

It make the object Disappear but after I Choose more then one (TARGET_NAME) the object Still in hide condition

Re: How to conditionally show/hide objects using alternate state

Try this:

GetSelectedCount(TARGET_NAME, False(), 'StateName') >= 1

Not applicable

Re: How to conditionally show/hide objects using alternate state

=GetSelectedCount(TARGET_NAME,'','State-Name')=1'

Not applicable

Re: How to conditionally show/hide objects using alternate state

still doesn't work.

I want the object to show only if i choose one TARGET_NAME and disappear if I choose more then one or I have more then one possible values

the expressions that you all sent make the object disappear and never shows again.

A stupid question Just to make sure when you write down "StateName "        

it means that I need to change to my Alternate State Name of the object Like "Date1"?

Tnx for the help



Re: How to conditionally show/hide objects using alternate state

Did you try this:

GetSelectedCount(TARGET_NAME, False(), 'StateName') >= 1

Community Browser