Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
konidena
Creator
Creator

How to select only one value always from the listbox

Hi Team,

We can do the "Always One Selected Value" in the list box after selecting the single value in the list box and Select Properties -> General -> Always One Selected value option.

In my case, i created the list box by using the expression

Right click in sheet properties -> New Sheet Object -> Listbox -> expression

the listbox values will be coming from the below process

Created the variable with the values in the variable overview window:

vTemp

US;Russia;UK;US;Chaina

Creating the sequence which will be helpful in creating the listbox

Temp:

Load recno() as valuesequence

Autogenerate(10);

In the list box expression window,

Subfield(vTemp,';', valuesequence)

Now the list box is created with the values

US

Russia

UK

US

Chain

When i tried to select the always one selected value, the option is disabled even i selected single value in the created listbox.

Please help me here on how to select the single value

Regards

Srinivas

1 Solution

Accepted Solutions
sunny_talwar

AFAIK list box which use expressions doesn't allow you to have always one selected value option. Its only available for a field created in a script

View solution in original post

4 Replies
sunny_talwar

AFAIK list box which use expressions doesn't allow you to have always one selected value option. Its only available for a field created in a script

konidena
Creator
Creator
Author

Yes, I am not able to select that option from the properties.

Is there any other possibility to create the list box in the frontend. Not from the script.

Regards

Srinivas

sunny_talwar

With one selected value option? I am afraid not

Gysbert_Wassenaar

You could use an InputBox object with a list of predefined values. The user can select a value which will be saved in a variable. You can then use that variable to do whatever you wanted that listbox selection for. The InputBox won't look like a listbox. You could also use a set of text boxes with Select in Field or Set Variable actions to mimic a listbox.


talk is cheap, supply exceeds demand