Skip to main content

Integration, Extension & APIs

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

Announcements
An issue has been identified on Qlik Cloud hub, please visit our Status Update Page for details: GET THE LATEST
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