The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Everyone,
Recently, I came across one requirement, implement the comments functionality in the embedded power bi report.
I was able to implement following after embedding the power bi report.
var reportContainer = document.getElementById('reportContainer');
console.log(reportContainer);
// Get a reference to the embedded report.
report = powerbi.get(reportContainer);
// Displays the report in full screen mode.
report.fullscreen();
var config = {
type: 'report',
accessToken: accessToken,
embedUrl: embedUrl,
id: reportId,
settings: {
filterPaneEnabled: true/false,
navContentPaneEnabled: false
}
};
// Grab the reference to the div HTML element that will host the report.
var reportContainer = document.getElementById('reportContainer');
// Embed the report and display it within the div container.
var report = powerbi.embed(reportContainer, config);
But, I do not find any option to display the comment section or enable the comment section using java script.
Your help is highly appreciated.
I'm also looking for the same thing, but coming up empty (as of 7/28/2021). Here's Microsoft's documention regarding configuration settings: https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings
Comments settings are available in Power BI Services, but I'm not finding the option to allow anyone viewing the report in Power BI Embedded to see or add comments.