Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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.