The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
We are embedding the report in dotnet application through Javascript, able to embed the report successfully.
But we are not able to hid
FilterPane
NavigationPane
Can you please help, below is the java script code block used.
var config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
viewMode: DMode,
//settings: {
// navContentPaneEnabled: false
//}
//// Embed the report and display it within the div container.
settings:
{
panes:
{
filters: { expanded: false,visible: false },
pageNavigation: { visible: false }
}
}
};
Hi,
I have embedded the report in angular (Powerbi Desktop report). Here I have one scenario like we have adhoc reports i.e users can able to modify the powerbi reports and save it. In this we have few pre-loaded filters based on the user preferences and those filters should not be visible to the users in adhoc mode (view mode = 1 -> edit mode).Is there any way to hide those filters (pre-loaded) alone in the filter pane , instead hiding the pane itself.
Hi @nagaraj ,
Please try this:
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: false
}
};
Reference:
Hi @nagaraj ,
Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from the thread.
Hi @amitchandak
As mentioned in the third URL, i have used the same code block in Java Script.
But not able to hide FILTER PANE and NAVIGATION PANE.
As per some other suggestions, tried appending &navContentPaneEnabled = false directly appending to the URL, but no luck remains same.
Regards
Nagaraj
remove spaces. It worked for me:
&navContentPaneEnabled=false