Instead of being displayed in edit mode and hidden in view mode the menu (appBar) is no longer visible when switching an embedded report from view to edit mode with report.switchMode("edit") Embed...
Anonymous
8 years agoNot applicable
I have the same problem.
As a workaround i used report.updateSettings() with the new settings: "Extend option menu" after report = powerbi.embed().
...
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);
var newSettings = {
extensions: [{
command: {
name: "extension command",
title: "Extend commands",
extend: {
visualOptionsMenu: {
title: "Extend options menu"}
}
}
}
]
};
report.updateSettings(newSettings)
.catch(function (error) {
Log.log(errors);
});Ref: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#
1) Embed > View mode > Run
2) Interact > Edit & Save > Enter edit mode > Run
3) Interact > Menu Extensions > Extend options menu > Run