Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Not able to hold value in variable

Hi,

- In the list box i've a Group field and with presentaion as check box. After marking the data i'll click the button to store the data in variable.

- Button contains the action like following:

variable : vGroup

value: =GetFieldSelections(Group,',')

- Now the variable contains the data. But if selected data is greater than 6 the variable not able to hold the data.

I don't know y it happening can anybody solve this problem.

I'm attaching sample qvw file...But i'm using personal edition.

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Jacq,

The GetFieldSelections() function has a 3rd parameter as well (default value is 6) for number of selections to record.

You can put another number in there to capture more selections, like:

=GetFieldSelections(Group,',',20)

View solution in original post

5 Replies
Anonymous
Not applicable

Hi Jacq,

The GetFieldSelections() function has a 3rd parameter as well (default value is 6) for number of selections to record.

You can put another number in there to capture more selections, like:

=GetFieldSelections(Group,',',20)

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Johannes Sunden,

Ya..It's woking thanks a lot.

Anonymous
Not applicable

No worries, glad to hear it's working fine for you.

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Johannes Sunden,

Small fare from you if list box is with expression how can i store selected values into variable. B'coz if listbox is with expression then this code:=GetFieldSelections(Group,',',20) is not working to store selections into variable.

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Is it possible to store unselected data of listbox in one variable..

i.e.., reverse to this code =GetFieldSelections(Group,',',20)