Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Individually selected parts in a listbox

Hi,

in a listbox there are two values which can be selected individually. Also both values can be marked. In a multiselectbox the choice is limited only to a value. If the choice can be also limited in a listbox to a value in each case. In the example only the values should be able to be selected for ‘acc’ or ‘mon’ for the diagram.

Regards Stefan

8 Replies
rustyfishbones
Master II
Master II

Create a list box and instead of using value_type

create an expression like this

=IF(value_type = 'mon',value_type)

this will give you a list box with just that value

you can add this expression here

createexp.png

Not applicable
Author

Hi Stefan,

If you are having only 2 values in your list box and you want the list box to have only 1 value selected at a time then you can  use "Always One selected" option.

Select one value in the list box, then go to the properties of list box and check "Always One Selected Value" checkbox.

This way only one value will be selected at a time in list box.

Hope this helps!

archana_g
Partner - Contributor III
Partner - Contributor III

Hi

You can limit the value to be selected in a list box.

Right Click the list box and goto properties.

In the General Tab click the checkbox 'Always One Selected Value'.

Select_one.JPG.jpg

Click Ok.

Now you will be able to limit to one selection in a list box.

Attached the file for your reference.

Regards

Archana

Anonymous
Not applicable
Author

Many thanks to Alan, Shyamal and archana.

One question to archana. If i add a new listbox, checkbox ' 'Always One Selected Value' can`t be selected '

Regards Stefan

Anonymous
Not applicable
Author

Hi,

can the field location be represented in a structure? So, HQ marks all fields below. CI pretends, Concord ' and, Karlsruhe ' and HQ should be not selected any more. If Concord is selected, CI is selected, if ‘Concord ' and, Karlsruhe ' is selected, then CI is selected.

Can the choice be indicated in the diagram or in an additional box?

HQ

     CI

          Concord

          Karlsruhe

     PA

          Bartelsville

Regards Stefan

rustyfishbones
Master II
Master II

Can you dish out the points 🙂

You need to create a list box first, make a selection and then the option will be there for you to choose "Always one Selected Value"

archana_g
Partner - Contributor III
Partner - Contributor III

Hi Stefan,

Apologies for the delay.

If you are creating a new list box you need to select a value and then the option 'Always One Selected Value' will be available for selection.

Regards

Archana

tresesco
MVP
MVP

Hello Stefan,

To achieve that you have to implement Hierarchy/HierarchyBelongsTo  in the script and then tree view in the list box and then a tweak like a clever trigger.

But i would recommend to create a new thread to get more responses as this is a different requirement from the one you started with. And please close this thread if you have been answered for the first question.