Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48350

Read Filter in Custom Visual

$
0
0

Hi,

 

Is it possible to read the filter settings in the custom Visual? So not only receiving filtered data, but actually to read it somehow?

The custom visual should react to the filter, but not only to the new data provided. It is needed to navigate in a map in a read-only report.

 

If I'm correct the filter API, does not provide read functinality. The api only sets filters.

Also the InteractivityFilterService does not do the job.

 

 

 

import { InteractivityFilterService } from "powerbi-visuals-utils-interactivityutils/lib/interactivityFilterService";

 

 

 

And the options.jsonFilters property in the update-function is always empty.

 

I saw in an example the following: Capabilites.json

 

 

 

"selfFilter": { "type": { "filter": { "selfFilter": true } } }

 

But this does not provide anything.

 

I also tried the following (which is also always empty)

dataViewObjects.getValue(data.metadata.objects, Filter.filter)

 

Maybe someone can provide an good example, because all examples from microsoft are outdated.

 

Thanks.


Viewing all articles
Browse latest Browse all 48350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>