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: 
d_pranskus
Partner - Creator III
Partner - Creator III

app.selectionState OnData handler returns only 6 selections

Hi

I am using the following code to get my current selections in a mashup:

const selState = app.selectionState();

const listener = () => {

   console.log('Selections', selState);

}

selState.OnData.bind(listener);

When I make selections in the mashup, I can see that the listener is fired.

My problem is that it returns only 6 values, even there are more values selected

Following is the console output screenshot (as you can see there are 8 values selected, but the selectedValues array has total 6 values). There is a property named qSelectionThreshold, which is always 6 and I am unable to change it.

Capture.PNG

My question would be, is it possible to get all the selected values? How to change the threshold value?

Thanks

3 Replies
Aiham_Azmeh
Employee
Employee

will_br
Contributor III
Contributor III

Hi @Aiham_Azmeh , is there any way of doing this? Or changing a user setting is the only workaround still today?

Aiham_Azmeh
Employee
Employee

Hi,

There are no easy workaround for that...
I saw implementations that get all fileds that have selections => GetField -> getData =>extract all selected  values in that field.

I unfortunately couldn't find any example in github, but I think you get the idea.

I hope this helps