Forum Discussion
map data role to Variable in visual.ts
thanks for your comment. i will look into this more shortly.
just to add some more context what i would like to do is map the data value to a configuaration variable within the code as part of an API call to get authentication, it will always be a single value. rather than a table or values to display within the visual. hope this helps
The problem with the custom visuals is that you only get one dataView returned. You can specify multiple dataViews but depending on the conditions you have set the API only returns one dataView.
So if you only need one single value then it sould be part of the dataView you are using which can be a single Value but mostly is categorical, table or matrix.
So if you only provide a single Value for authentication you dont have other data for your visual 🙂
In this case it might be logical that your authentication value is part of your dataView and probably repeated in your table or values.
Regards
Paul