Hi
I'm trying to embed the power-bi report into cordova app as explained here.
here is my code:
var embedConfiguration = {
type: 'report',
accessToken: '// access token',
id: '// report id',
embedUrl: 'https://embedded.powerbi.com/appTokenReportEmbed'
};
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer , embedConfiguration);
powerbi.get(reportContainer);
But I'm getting the following errors for some phones:
Uncaught DOMException: Blocked a frame with origin "https://embedded.powerbi.com" from accessing a cross-origin frame.(…)
The error doesn't depends on android version also, two phones which has android 5.1.1 - for one of the phone, power bi report works fine but for another phone getting this error.
iframe is being loaded for all phones but the content of that iframe document is different if I get this error(In this case, it just shows the power-bi loader).
I tried putting <access origin="*" /> in config.xml but no luck!
Hi,
I've created this custom visual wrapper of ag-grid ('the best javascript grid in the world' apparently), as first foray/investivation into custom visual development
https://gitlab.com/nite2/powerbi-ag-grid
It's pretty bare-bones currently, only using the table data mapping - which doesnt allow the dashboard developer to control the powerful row grouping & pivoting that ag-grid provides. I had a crack at using the matrix data mapping, however it is clearly built without open community custom visual devs in mind, eg with lack of documentation and posts like this:
https://community.powerbi.com/t5/Developer/Need-Help-understanding-Matrix-dataMapping/td-p/225967
Can anyone suggest a decent resource to quickly understand the matrix mapping, so I can map it into something simple & useful for ag-grid to consume (in the form of ag-grid ColumnDefs)? Or another open-source example of a matrix data mapping custom viz with some example javascript manipulation of the matrix dataview?
If you add the grid (published into the dist folder in gitlab) then you should see a columns sidebar in the grid itself, which should allow you to play with the grid pivot, or just go to https://www.ag-grid.com/example.php
Hello everyone, has anyone had any luck with getting report / page-level filters for their custom visuals made with TypeScript? I have read through the docs & am not seeing any of the functions in my powerbi-client object reference... For example,
import * as pbi from 'powerbi-client';
var report = pbi.Report;
var filters = report.getFilters(); //report does not have a function getFilters()
Any ideas?