Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
spencerdeane
New Member

Specify Bookmark for Embedded / Public Report

Hello,

 

Is there a way of specifying a bookmark to be selected when an Embedded / Public iFrame report is loaded?

 

I know in an iFrame you can put &navPaneEnabled = 0 for example, I was wondering if there was something similar for a bookmark?

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @spencerdeane ,

According to the official article description:

In an embedded report, developers can:

And  to get the list of saved bookmarks associated with a report, call the getBookmarks method of the BookmarksManager object returned by the report's bookmarksManager property.

The getBookmarks method is defined as follows:

getBookmarks(): Promise<models.IReportBookmark[]>

To apply a previously saved bookmark to a report by using its bookmark name, call the apply method of the BookmarksManager object returned by a report's bookmarksManager property.

For more information, see Configure report settings.

The apply method is defined as follows:

Javascript&colon;

apply(bookmarkName: string): Promise<void> 

For example:

Javascript&colon;

await report.bookmarksManager.apply("Bookmark1234"); 

WIsh it is helpful for you!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @spencerdeane ,

According to the official article description:

In an embedded report, developers can:

And  to get the list of saved bookmarks associated with a report, call the getBookmarks method of the BookmarksManager object returned by the report's bookmarksManager property.

The getBookmarks method is defined as follows:

getBookmarks(): Promise<models.IReportBookmark[]>

To apply a previously saved bookmark to a report by using its bookmark name, call the apply method of the BookmarksManager object returned by a report's bookmarksManager property.

For more information, see Configure report settings.

The apply method is defined as follows:

Javascript&colon;

apply(bookmarkName: string): Promise<void> 

For example:

Javascript&colon;

await report.bookmarksManager.apply("Bookmark1234"); 

WIsh it is helpful for you!

 

Best Regards

Lucien

ibarrau
Super User
Super User

Hi. If you are talking about Publish to Web then no. It will open the report as it was saved. You can change that in URL or parameter.

If you are talking about real deal embed you can. You can check the features for this in the playground: https://playground.powerbi.com/explore-features

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors