cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

embed report :: hide filter

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 }
}
}


};

4 REPLIES 4
Highlighted
Super User IX
Super User IX

Re: embed report :: hide filter

Highlighted
Post Patron
Post Patron

Re: embed report :: hide filter

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

Highlighted
Community Support
Community Support

Re: embed report :: hide filter

Hi @nagaraj ,

 

Please try this:

settings: {
                      filterPaneEnabled: false,
                      navContentPaneEnabled: false
                    } 
          }; 

 Reference: 

https://community.powerbi.com/t5/Developer/How-to-Hide-Power-BI-iFrame-Embedded-Report-Tabs/m-p/1223...

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Support
Community Support

Re: embed report :: hide filter

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.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors