Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

rbartley
Contributor III

QS Selection Object Threshold for Mashups "x of y" problem

Hello everyone,

Up until now, I have been working quite happily with the selection object to look at the current selections for a field.  However, I notice that when there are more than a certain number of values selected, instead of showing a comma-separated list of all of the selected values in qSelected, it shows a string of the format x of y, e.g. "10 of 40", where x represents the number of selected values and y is the total number of available values. 

I saw a post concerning Qlk View where the selection threshold was mentioned, so I tried :

value.qSelectionThreshold=10; (see below for context)

$.each(reply.qSelectionObject.qSelections, function(key, value)

{

  value.qSelectionThreshold=10;

  var field = value.qField;  //The field name

  if(field=="Latest Year Flag(Price)"||field=="Year (Price)")

  {

  strSelectedYears = value.qSelected; //The concatenated string of selected values

  } 

});

However, although I could see that the property of the value object seemed to have been altered, it did not seem to make any difference to the result.

Working if few values selected:

SelectionThreshold Few Values.PNG

Not working if 7 or more selected:

SelectionThreshold Many Values.PNG

Does anyone have any ideas?

Tags (2)
1 Solution

Accepted Solutions
fede_muller
New Contributor

Re: QS Selection Object Threshold for Mashups "x of y" problem

Hi Richard

I correct myself, it seems is possible to extend this threshold in QLik Sense Enterprise as well.

You need to modify the setting.ini file usually located in C:\ProgramData\Qlik\Sense\Engine

Under [Settings 7] section add below line:

MaxCurSelEntries=15

Remember to leave a blank line as the last line in the file otherwise the variable won't be captured

Restart the Qlik Sense Engine service and now you should be able to select up to 15 items.

5 Replies
fede_muller
New Contributor

Re: QS Selection Object Threshold for Mashups "x of y" problem

Hi Richard,

It seems in order to change the qSelectionThreshold value you will have to change a user setting which is something not possible at the moment. They said this functionality it's on the roadmap, but this was more than a year ago...

Check below thread:

Re: Sense extensions : How can I change qSelectionThreshold value ?

Cheers

Fede

fede_muller
New Contributor

Re: QS Selection Object Threshold for Mashups "x of y" problem

Hi Richard

I correct myself, it seems is possible to extend this threshold in QLik Sense Enterprise as well.

You need to modify the setting.ini file usually located in C:\ProgramData\Qlik\Sense\Engine

Under [Settings 7] section add below line:

MaxCurSelEntries=15

Remember to leave a blank line as the last line in the file otherwise the variable won't be captured

Restart the Qlik Sense Engine service and now you should be able to select up to 15 items.

rbartley
Contributor III

Re: QS Selection Object Threshold for Mashups "x of y" problem

Thanks Federico.  That worked perfectly.

Digvijay_Singh
Honored Contributor III

Re: QS Selection Object Threshold for Mashups "x of y" problem

Thanks! I was also searching for how to do that.

elias_chafloque
New Contributor II

Re: QS Selection Object Threshold for Mashups "x of y" problem

Hi, Yes I read an old post where it is said that it is in the roadmap to add the threshold as parameter. Any update for this? We would like to put the limit higher just for an specific call.

Community Browser