Forum Discussion
Silko
Helper II
10 years agoreport embed problem
I tried to embed reports the same way as tiles with the new api for reports list. Tiles are working perfectly but when I try to embed a report I get this error: Uncaught SecurityError: Blocked a fra...
- 10 years ago
Hi everyone,
it looks like Microsoft has taken care of this issue. I didn't change the code and it started working. It is still a little bit bugy for some types of visuals. But it renders now. The errors and warnings I get for some of the reports now:
Silko
Helper II
10 years agoIt is just a copy paste from a tutorial:
<iframe width="500px" height="500px" id="iFrameEmbedTile" onload="postActionLoadReport();" src="<?= $embedUrl; ?>&width=<?= $width; ?>&height=<?= $height; ?>"></iframe>
<script>
function postActionLoadReport() {
// get the access token.
accessToken = "<?= $access_token; ?>";
// return if accessToken is empty
if ("" === accessToken)
return;
// construct the push message structure
var m = { action: "loadReport", accessToken: accessToken };
message = JSON.stringify(m);
// push the message.
iframe = document.getElementById('iFrameEmbedTile');
iframe.contentWindow.postMessage(message, "*");;
}
</script>The part for gettng the list of reports is working ok. Just the part for embeding the report gives the error.
Silko
Helper II
10 years agoHi everyone,
it looks like Microsoft has taken care of this issue. I didn't change the code and it started working. It is still a little bit bugy for some types of visuals. But it renders now. The errors and warnings I get for some of the reports now: