Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Highlighted
Pascal
New Contributor

qState wrong in Mashup custom filter pane

Hello,

Atm im building a custom filter pane for mashup.

I readed from the link below how the filter system works:

https://community.qlik.com/t5/Qlik-Sense-Integration/XS-qState-meaning/m-p/1524905

Lets say i got the filterpane SalesPerson and Region.

When i select 1 SalesPerson all the other SalesPersons get the qState X and the Regions filterpane get filtered with the regions that are possible with the SalesPerson, but as soon i select a other Region that has at that moment the qState O they also all get qState X.

When i use the built-in Qlik filterpane it works how it should work, i can select a more then one SalesPerson since they get the qState A.

Green should be S thats what is selected.
Light grey should be A as far as i understand thats alternative.
Dark grey should be X thats excluded.

To receive the qState from Qlik im using: (Its using a forEach loop thats why i use [0])

reply.qListObject.qDataPages[0].qMatrix.forEach(function (value)

{
    console.log(value[0].qState)
}
 

In the reply.qListObject.qDimensionInfo.qStateCounts i see only how much of each state is possible, but the counts are always correct only not the qState of each filter object.

Anyone a idea what could be wrong? Or how i should request the qState to get the right qState.


Regards,
Pascal

Tags (3)
Labels (3)