<?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 PowerBI Javascript API usage in Angular in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Javascript-API-usage-in-Angular/m-p/820535#M21131</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We managed to embed a Power BI report in our angular app.&lt;/P&gt;&lt;P&gt;We now want to test the Dynamic Binding feature but we're facing issues.&lt;/P&gt;&lt;P&gt;If the config is of type IEmbedConfiguration, we have an error because datasetBinging is not defined in type IEmbedConfiguration.&lt;/P&gt;&lt;P&gt;If the config is of type IReportLoadConfiguration, we have an error because when we call the embed method, IReportLoadConfiguration is not compatible with IEmbedConfiguration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how to achieve that would be really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an extract of our code:&lt;/P&gt;&lt;PRE&gt;import * as pbi from 'powerbi-client';
import * as pbimodels from 'powerbi-models';

config: pbi.IEmbedConfiguration;
// config: pbimodels.IReportLoadConfiguration;

this.config = {
        // Remove type when use IReportLoadConfiguration type
        type: 'report',
        accessToken: this.token,
        tokenType: pbimodels.TokenType.Embed,
        embedUrl: this.reportEmbedUrl,
        id: this.reportId,
        permissions: pbimodels.Permissions.All,

        datasetBinding: {
          datasetId: "notOriginalDatasetId", // The wanted dataset id
        },
        settings: {
          filterPaneEnabled: true,
          navContentPaneEnabled: false
        }
    };

this.report = this.powerbi.embed(this.reportContainer.nativeElement, this.config) as pbi.Report;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 07:17:45 GMT</pubDate>
    <dc:creator>dartdoka</dc:creator>
    <dc:date>2019-10-17T07:17:45Z</dc:date>
    <item>
      <title>PowerBI Javascript API usage in Angular</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Javascript-API-usage-in-Angular/m-p/820535#M21131</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We managed to embed a Power BI report in our angular app.&lt;/P&gt;&lt;P&gt;We now want to test the Dynamic Binding feature but we're facing issues.&lt;/P&gt;&lt;P&gt;If the config is of type IEmbedConfiguration, we have an error because datasetBinging is not defined in type IEmbedConfiguration.&lt;/P&gt;&lt;P&gt;If the config is of type IReportLoadConfiguration, we have an error because when we call the embed method, IReportLoadConfiguration is not compatible with IEmbedConfiguration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how to achieve that would be really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an extract of our code:&lt;/P&gt;&lt;PRE&gt;import * as pbi from 'powerbi-client';
import * as pbimodels from 'powerbi-models';

config: pbi.IEmbedConfiguration;
// config: pbimodels.IReportLoadConfiguration;

this.config = {
        // Remove type when use IReportLoadConfiguration type
        type: 'report',
        accessToken: this.token,
        tokenType: pbimodels.TokenType.Embed,
        embedUrl: this.reportEmbedUrl,
        id: this.reportId,
        permissions: pbimodels.Permissions.All,

        datasetBinding: {
          datasetId: "notOriginalDatasetId", // The wanted dataset id
        },
        settings: {
          filterPaneEnabled: true,
          navContentPaneEnabled: false
        }
    };

this.report = this.powerbi.embed(this.reportContainer.nativeElement, this.config) as pbi.Report;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 07:17:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Javascript-API-usage-in-Angular/m-p/820535#M21131</guid>
      <dc:creator>dartdoka</dc:creator>
      <dc:date>2019-10-17T07:17:45Z</dc:date>
    </item>
  </channel>
</rss>

