Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
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
sunny_talwar

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

Only({StateName}FieldName) = 'Something'

Not applicable
Author

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

Anonymous
Not applicable
Author

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

sunny_talwar

Try this:

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

Not applicable
Author

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

sunny_talwar

Try this:

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

Not applicable
Author

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

Not applicable
Author

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



sunny_talwar

Did you try this:

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