<?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: How i use powerbi-router in reactjs in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1775722#M28866</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/277349"&gt;@FerYelAco93&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can refer to this project.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Microsoft/powerbi-router" target="_blank"&gt;GitHub - microsoft/powerbi-router: A lightweight router for the Power BI JavaScript SDK which allows a hosting application to register routes to extend and integrate with Power BI embedded components.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 03:04:44 GMT</pubDate>
    <dc:creator>v-lionel-msft</dc:creator>
    <dc:date>2021-04-09T03:04:44Z</dc:date>
    <item>
      <title>How i use powerbi-router in reactjs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1772628#M28829</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need help with the &lt;STRONG&gt;powerbi-router&lt;/STRONG&gt; component installed with npm in my Reactjs project.&lt;/P&gt;&lt;P&gt;How i use, if i want a dynamic menu in my app that connect to my power BI embeded report, used the powerbi-report-component library in reactjs with the &amp;lt;Report /&amp;gt; tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my &amp;lt;Report /&amp;gt; tag:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Report
tokenType="Embed"
accessToken={localStorage.getItem('accessToken')}
embedUrl={"https://app.powerbi.com/reportEmbed?reportId=" + REACT_APP_EMBED_REPORT_ID}
embedId={REACT_APP_EMBED_REPORT_ID}
reportMode="View"
datasetId={REACT_APP_EMBED_DATASET_ID}
groupId={REACT_APP_EMBED_GROUP_ID}
extraSettings={extraSettings}
permissions="View"
style={reportStyle}
onLoad={this.handleReportLoad}
onRender={this.handleReportRender}
/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I store the name and displayName of the pages I need from power BI report, and I loaded dynamicly according to the rol of the user loged. I need te specific route to connect my dynamic menu with the report embed.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please and thank you for everything!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1772628#M28829</guid>
      <dc:creator>FerYelAco93</dc:creator>
      <dc:date>2021-04-07T16:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How i use powerbi-router in reactjs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1775722#M28866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/277349"&gt;@FerYelAco93&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can refer to this project.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Microsoft/powerbi-router" target="_blank"&gt;GitHub - microsoft/powerbi-router: A lightweight router for the Power BI JavaScript SDK which allows a hosting application to register routes to extend and integrate with Power BI embedded components.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 03:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1775722#M28866</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-04-09T03:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How i use powerbi-router in reactjs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1777108#M28878</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/184579"&gt;@v-lionel-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I saw this documentation, but do not offer me the enough to start the link of my menu app to the powerbi report embeded in my reactjs project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a solution likes this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;span&amp;gt;
    {this.state.menuP.map(function (di, key) {
        return &amp;lt;SidebarLink
                  title={di.display_name}
                  icon={di.icon}
                  route={"/report/pages/"}
                  key={key} &amp;gt;
               &amp;lt;/SidebarLink&amp;gt;
         })
     }
&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where route={} might be the link to my report, like /report/pages/...etc.&lt;/P&gt;&lt;P&gt;Please, and thank you again&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 14:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-i-use-powerbi-router-in-reactjs/m-p/1777108#M28878</guid>
      <dc:creator>FerYelAco93</dc:creator>
      <dc:date>2021-04-09T14:30:32Z</dc:date>
    </item>
  </channel>
</rss>

