Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
See why BI users voted Qlik #1 in 11 categories. GET REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

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
Highlighted
Employee
Employee

Highlighted
Contributor III
Contributor III

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

Highlighted
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