Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
dinnoroni
Partner - Contributor
Partner - Contributor

Get current selections with qlik json api

Hi all,

I'm building a react mashup using enigma js and JSON API. Could anyone help me with how do I get the current selections in the apps? I was using enigma-mixin to get the current selections but the engima mixin mSelectionsAll function only returns 6 selected values in a field even if I have more than 6 fields values selected. 

Could you anyone help with alternative solutions?

Labels (6)
1 Reply
blink
Contributor II
Contributor II

Hi,

For example, you can create a variable which will store all selections in a json string format. Then you can get it, parse an use it in the mashup. But you should take into account that it can contain "selectMatch" expressions instead of an array of actual values.

 

Also you can create a List ( app.createList(config, callback) ) for each field you need and get values in a callback. But this seems like an overkill.

That is all I can suggest.