{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/53","repository_url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript","labels_url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/53/comments","events_url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/53/events","html_url":"https://github.com/Microsoft/PowerBI-JavaScript/issues/53","id":176274964,"number":53,"title":"How to work with PowerBI Embedded?","user":{"login":"rolandoldengarm","id":14539000,"avatar_url":"https://avatars.githubusercontent.com/u/14539000?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandoldengarm","html_url":"https://github.com/rolandoldengarm","followers_url":"https://api.github.com/users/rolandoldengarm/followers","following_url":"https://api.github.com/users/rolandoldengarm/following{/other_user}","gists_url":"https://api.github.com/users/rolandoldengarm/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandoldengarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandoldengarm/subscriptions","organizations_url":"https://api.github.com/users/rolandoldengarm/orgs","repos_url":"https://api.github.com/users/rolandoldengarm/repos","events_url":"https://api.github.com/users/rolandoldengarm/events{/privacy}","received_events_url":"https://api.github.com/users/rolandoldengarm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-09-12T00:38:19Z","updated_at":"2017-01-16T09:52:59Z","closed_at":"2016-09-12T18:37:49Z","body":"I've used the PowerBI CLI to upload a PBIX.\nI've tried to follow this example to embed it, but nothing seems to happen.\n\nhttps://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics\n\nWhat should I use for the powerbi-embed-url ?\nI only have an access token (from the Azure Portal).\nA step-by-step guide would be appreciated.\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/comments/272817085","html_url":"https://github.com/Microsoft/PowerBI-JavaScript/issues/53#issuecomment-272817085","issue_url":"https://api.github.com/repos/Microsoft/PowerBI-JavaScript/issues/53","id":272817085,"user":{"login":"rneven","id":24790371,"avatar_url":"https://avatars.githubusercontent.com/u/24790371?v=3","gravatar_id":"","url":"https://api.github.com/users/rneven","html_url":"https://github.com/rneven","followers_url":"https://api.github.com/users/rneven/followers","following_url":"https://api.github.com/users/rneven/following{/other_user}","gists_url":"https://api.github.com/users/rneven/gists{/gist_id}","starred_url":"https://api.github.com/users/rneven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rneven/subscriptions","organizations_url":"https://api.github.com/users/rneven/orgs","repos_url":"https://api.github.com/users/rneven/repos","events_url":"https://api.github.com/users/rneven/events{/privacy}","received_events_url":"https://api.github.com/users/rneven/received_events","type":"User","site_admin":false},"created_at":"2017-01-16T09:52:59Z","updated_at":"2017-01-16T09:52:59Z","body":"@ali-hamud \r\n\r\nThank you very much for your reply, we are progressing slowly. We are currently, more or less successfully, embedding a .pbix report in our web application built in our front end development tooling Outsystems using the following piece of JavaScript (see below, we are using an Embed Token Web API for embedding). \r\nSomehow though, we cannot get the default page setting in the embedConfiguration variable to work. It keeps popping up the last report section (number 5 out of 5, i.e. ReportSection4) as default page. Can anyone spot anything incorrect in this code? Thank you very much in advance!\r\n\r\n`<script>\r\n\r\n var embedConfiguration = {\r\n type: 'report',\r\n accessToken: '\" + EncodeJavaScript(AppToken) + \"',\r\n id: '\" + EncodeJavaScript(ReportId) + \"',\r\n embedUrl: '\" + EncodeJavaScript(URL) + \"',\r\n settings: {\r\n filterPaneEnabled: false,\r\n navContentPaneEnabled: false,\r\n pageName: 'ReportSection1'\r\n }\r\n };\r\n\r\n var reportContainer = document.getElementById('\"+ PowerBIReport.RuntimeId +\"_report');\r\n\r\n // Embed the report and display it within the div container.\r\n var report = powerbi.embed(reportContainer, embedConfiguration);\r\n\r\n // Report.off removes a given event handler if it exists.\r\n report.off('loaded');\r\n\r\n // Report.on will add an event handler which prints to Log window.\r\n report.on('loaded', function() {\r\n console.log('Report loaded');\r\n });\r\n\r\n\r\n </script> `"}}
{"actor":{"display_login":"rneven"}}