Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Error on getSlicerState

I'm getting this error on calling visual.getSlicerState()

 

Operation is only supported for visuals of type slicer

 

My capabilities.json is this

{
    "dataRoles": [
        {
            "displayName": "Values",
            "name": "values",
            "kind": "Grouping"
        }
    ],
    "dataViewMappings": [
        {
            "conditions": [
                {
                    "values": {
                        "max": 1
                    }
                }
            ],
            "categorical": {
                "categories": {
                    "for": {
                        "in": "values"
                    },
                    "dataReductionAlgorithm": {
                        "top": {
                            "count": 100000
                        }
                    }
                }
            }
        }
    ],
    "objects": {
        "general": {
            "displayName": "General",
            "properties": {
                "filter": {
                    "displayName": "filter",
                    "type": {
                        "filter": true
                    }
                }
            }
        }
    },
    "supportsSynchronizingFilterState": true
}
No Replies