Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Auto hiding of list box after selection is made

Hi Community,

I'm looking for a solution to the folowing issue. I have a listbox which is conditionally displayed on clicking a button (text object actually). An action is set on text object to change variable value which is then passed to conditional display of the listbox. When the user makes the selection it's needed to click the text object again in order for the listbox to disappear. It looks like a drop down list as the listbox is displayed just below the text object on top of the charts below.

What I want to archieve is to automatically hide the list box after the selection is made (without the need to click the text object again) - just like the in the drop down list.

Any ideas how to do that?

Wojtek

1 Solution

Accepted Solutions
Highlighted
MVP
MVP

Trigger ->Field Event Triggers->Field(Item in my app)->On Select.... Check it....Magic!!!

View solution in original post

7 Replies
Highlighted
Anonymous
Not applicable

I am note sure

you can define "conditional layout" = getselectedcount(yourfieldInListbox)=0

as soon as you elect something the listbox will be hidden

you Need to add Action to textobject or button to reset the selection by

clear field yourfieldInListbox

Highlighted
MVP & Luminary
MVP & Luminary

On the layout tab select the option Conditional and enter an expression like:

=NOT GetSelectedCount(MyFieldNameHere).


talk is cheap, supply exceeds demand
Highlighted
Not applicable

Sorry that I was not precise enough. The listbox has 'always one value selected' checked so the user selection means replacing currect selection with different one. Therefore GetSelectedCount will always return 1.

Any other ideas much appreciated.

Highlighted
MVP
MVP

May be like attached sample?

Highlighted
Not applicable

This is it! GREAT!

But I cannot figure out how you managed to change v1 value to 0 when selection is made.

Magic?

Highlighted
MVP
MVP

Trigger ->Field Event Triggers->Field(Item in my app)->On Select.... Check it....Magic!!!

View solution in original post

Highlighted
Not applicable

Many thanks!