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: 
Anonymous
Not applicable

Avoid Multi Selection turning into "7 of 20"

Hi!

I need to assign the values from a multi selection in a listbox to a variable to be able to recover that selection later.

Currently I am using an OnSelect Trigger to assign the field selection to a variable through the GetFieldSelections() function.

However, once the multi selection exceeds 6 items my expression only retrieves the number of selected items like "7 of 20" which I cannot use to re-select later.

Is there a way to fix that?

Thank you for your help!

1 Solution

Accepted Solutions
jaumecf23
Creator III
Creator III

Hi,

You can introduce 3 parameters to the function:

GetFieldSelections ( field_name [, value_sep [, max_values]])


Example:


GetFieldSelections ( Country, '|', 20)

View solution in original post

2 Replies
jaumecf23
Creator III
Creator III

Hi,

You can introduce 3 parameters to the function:

GetFieldSelections ( field_name [, value_sep [, max_values]])


Example:


GetFieldSelections ( Country, '|', 20)

Miguel_Angel_Baeyens

If you don't have to use the Active Selections object, I'd rather go for the Concat() function which will take also all values selected for the given field, and you can use all the functionalities of a text object for formatting, adding characters, delimiters, separators, etc.