<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bookmark export functionality in REACT pbi report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1875290#M29716</link>
    <description>&lt;P&gt;I got something working but it's hacky:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt; report.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'rendered'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;async&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report.bookmarksManager.config &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; report.config; // this stops the errors for now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; const&lt;/SPAN&gt;&lt;SPAN&gt; bookmarks &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;await&lt;/SPAN&gt;&lt;SPAN&gt; report.bookmarksManager.&lt;/SPAN&gt;&lt;SPAN&gt;getBookmarks&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Really frustrating though. Looks like there's a bug in the js package.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getBookmarks calls&amp;nbsp;isRDLEmbed which expects this.config.embedUrl to be defined, but it's only defined on the report, not the bookmarksManager.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/blob/34a899547e1aa3428a2408c578786495fc541a7d/src/util.ts#L177" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-JavaScript/blob/34a899547e1aa3428a2408c578786495fc541a7d/src/util.ts#L177&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/blame/master/src/bookmarksManager.ts#L62" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-JavaScript/blame/master/src/bookmarksManager.ts#L62&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the official docs about loading a bookmark by name using static config doesn't seem to work either:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings#on-load-bookmark" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings#on-load-bookmark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried downgrading to 2.14.1 as suggested here&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Service/Power-BI-Bookmark-for-Embedded-report-Capture-api-not-working/m-p/1543270/highlight/true#M115693" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Service/Power-BI-Bookmark-for-Embedded-report-Capture-api-not-working/m-p/1543270/highlight/true#M115693&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But the only thing that worked for me was setting&amp;nbsp;&lt;SPAN&gt;bookmarksManager.config&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks like there's already a pr that'd stop the error. Not sure it'd fix the whole problem though, since the bookmarkManager still wouldn't have config defined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/pull/365" target="_blank"&gt;https://github.com/microsoft/PowerBI-JavaScript/pull/365&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Jun 2021 15:04:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-01T15:04:25Z</dc:date>
    <item>
      <title>Bookmark export functionality in REACT pbi report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1403051#M25947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have implemented a pbi report using the react implementation similar to this&amp;nbsp;&lt;A href="https://github.com/microsoft/powerbi-client-react" target="_self"&gt;demo&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I am trying to implement export functionality via the bookmark method similar to the JS bookmark method&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately trying to capture the report state via:&lt;/P&gt;&lt;P&gt;report.booksmarksManager.capture()&lt;BR /&gt;produces this error:&lt;/P&gt;&lt;P&gt;powerbi.js:1256 Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to be attributed to the values in bookmarksManager.config being undefined and never getting populated and this appears to also be the case in react demo.&lt;/P&gt;&lt;P&gt;Is there a way to populate the values in bookmarksManager.config and export reports using this method in a react implementation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keesh&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1403051#M25947</guid>
      <dc:creator>Keesh</dc:creator>
      <dc:date>2020-09-30T00:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmark export functionality in REACT pbi report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1464065#M26292</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/261866"&gt;@Keesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you ever figure out the solution for this? I am getting the same error when calling "apply(...)".&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 18:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1464065#M26292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T18:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmark export functionality in REACT pbi report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1875290#M29716</link>
      <description>&lt;P&gt;I got something working but it's hacky:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt; report.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'rendered'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;async&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report.bookmarksManager.config &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; report.config; // this stops the errors for now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; const&lt;/SPAN&gt;&lt;SPAN&gt; bookmarks &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;await&lt;/SPAN&gt;&lt;SPAN&gt; report.bookmarksManager.&lt;/SPAN&gt;&lt;SPAN&gt;getBookmarks&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Really frustrating though. Looks like there's a bug in the js package.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getBookmarks calls&amp;nbsp;isRDLEmbed which expects this.config.embedUrl to be defined, but it's only defined on the report, not the bookmarksManager.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/blob/34a899547e1aa3428a2408c578786495fc541a7d/src/util.ts#L177" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-JavaScript/blob/34a899547e1aa3428a2408c578786495fc541a7d/src/util.ts#L177&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/blame/master/src/bookmarksManager.ts#L62" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-JavaScript/blame/master/src/bookmarksManager.ts#L62&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the official docs about loading a bookmark by name using static config doesn't seem to work either:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings#on-load-bookmark" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings#on-load-bookmark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried downgrading to 2.14.1 as suggested here&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Service/Power-BI-Bookmark-for-Embedded-report-Capture-api-not-working/m-p/1543270/highlight/true#M115693" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Service/Power-BI-Bookmark-for-Embedded-report-Capture-api-not-working/m-p/1543270/highlight/true#M115693&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But the only thing that worked for me was setting&amp;nbsp;&lt;SPAN&gt;bookmarksManager.config&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks like there's already a pr that'd stop the error. Not sure it'd fix the whole problem though, since the bookmarkManager still wouldn't have config defined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/pull/365" target="_blank"&gt;https://github.com/microsoft/PowerBI-JavaScript/pull/365&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bookmark-export-functionality-in-REACT-pbi-report/m-p/1875290#M29716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T15:04:25Z</dc:date>
    </item>
  </channel>
</rss>

