Forum Discussion
djpirra
6 years agoHelper III
How to implement selections based on a categorical dataviewmapping with multiple fields
Hi everyone, Been trying to implement selections on my custom visual but somehow I cannot seem to make it work. Context drillthrough works fine but the item selection just does not seem to be wor...
djpirra
6 years agoHelper III
Hi Daniel,
This is what I have tried and also below is the output of one of the generated / triggered selectionIDs on the current setup.
Scenario 1:
- Created selectionId based on measure and 4 entries in categories ( current scenario )
- Created an array of selectionIds based on measure and each of the categories ( since apparently the selectionManager can receive an array of selectionIds )
e {measures: Array(1), dataMap: {…}, key: "{"XXXX.Is Auto":[{"identityIndex":11}],"Custo…tityIndex":11}]}["KPIs.# Active Customers"]"}
measures: ["KPIs.# Active Customers"]
dataMap:
XXXX.Is Auto: Array(1)
0: {identityIndex: 11}
length: 1
__proto__: Array(0)
XXXX.Is Malls: Array(1)
0: {identityIndex: 11}
length: 1
__proto__: Array(0)
XXXX.Is Real Estate: Array(1)
0: {identityIndex: 11}
length: 1
__proto__: Array(0)
XXXX.Is Retail: Array(1)
0: {identityIndex: 11}
length: 1
__proto__: Array(0)
__proto__: Object
key: "{"XXXX.Is Auto":[{"identityIndex":11}],"XXXX.Is Malls":[{"identityIndex":11}],"XXXX.Is Real Estate":[{"identityIndex":11}],"XXXX.Is Retail":[{"identityIndex":11}]}["KPIs.# Active Customers"]"
__proto__: Object
djpirra
6 years agoHelper III
Hey everyone.
Was able to make it work....
Everything was ok with the code except that I had this option on my capabilities file:
"general": {
"displayName": "General",
"displayNameKey": "formattingGeneral",
"properties": {
"filter": {
"type": {
"filter": true
}
}
}
},
Apparently this disables the normal behavior.
Thank you!