<?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: Custom Visual: Using Javascript Promises in Internet Explorer 11 in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481390#M14764</link>
    <description>&lt;P&gt;U mean in PowerBi.js replace Promise calls?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 12:44:59 GMT</pubDate>
    <dc:creator>tpatel</dc:creator>
    <dc:date>2018-08-06T12:44:59Z</dc:date>
    <item>
      <title>Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/449795#M13821</link>
      <description>&lt;P&gt;IE 11 still doesn't support ES2015 features like Promises.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My default approach here is to use a Polyfill lib, include it in "externalJS" section of pbiviz.json and&amp;nbsp;add "es2015" as lib to tsconfig.json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, the custom visual compiles, but the first use of a Promise results in an error:&lt;/P&gt;&lt;PRE&gt;new Promise((resolve, reject) =&amp;gt; {
    resolve();
});&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR TypeError: Erlaubnis verweigert.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Die Eigenschaft "getOwnPropertyNames" eines undefinierten oder Nullverweises kann nicht abgerufen werden.&lt;/FONT&gt;&lt;BR /&gt;&lt;EM&gt;In english it's probably&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;ERROR TypeError: Permission denied.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;The "getOwnPropertyNames" property of an undefined or null reference can not be retrieved.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;However, when I write instead&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;new window["Promise"]((resolve, reject) =&amp;gt; {
    resolve();
});&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;.. it works as expected.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;What's happening here?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 22:32:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/449795#M13821</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2018-06-27T22:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/450022#M13827</link>
      <description>&lt;P&gt;This issue is related to the fact that Power BI creates a copy of window object to isolate PBI code from Custom Visual's code.&lt;/P&gt;
&lt;P&gt;Such solution might produce issues with some native methods and it produces issues with importing external libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanttime, we're implementing Webpack based PBIVIZ tools to support ES2015 and get rid of this issue by additional code isolation. You can already check it out. It's avaialbe under beta tag on NPM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 06:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/450022#M13827</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-06-28T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/450169#M13839</link>
      <description>&lt;P&gt;Tried the beta version (@2.0.1) of the powerbi-visuals-tools&amp;nbsp;package. Gives me a "Syntax error" in IE11 right away with the sample visual that you get with "pbiviz new". Other browsers work, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you say, it's safe to use window["Promise"], then I can work with that.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 08:50:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/450169#M13839</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2018-06-28T08:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/452557#M13906</link>
      <description>&lt;P&gt;Yeah, window["Promise"] will probably work well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/452557#M13906</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-02T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481355#M14760</link>
      <description>&lt;P&gt;Can you please show me the function how to implement?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481355#M14760</guid>
      <dc:creator>tpatel</dc:creator>
      <dc:date>2018-08-06T12:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481363#M14761</link>
      <description>&lt;P&gt;Replace all "Promise" - calls with "window['Promise']"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly do you want to know?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:26:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481363#M14761</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2018-08-06T12:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481390#M14764</link>
      <description>&lt;P&gt;U mean in PowerBi.js replace Promise calls?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481390#M14764</guid>
      <dc:creator>tpatel</dc:creator>
      <dc:date>2018-08-06T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481490#M14769</link>
      <description>&lt;P&gt;In your Custom Visual code, usually all *.ts files.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/481490#M14769</guid>
      <dc:creator>blumi78</dc:creator>
      <dc:date>2018-08-06T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/482845#M14822</link>
      <description>&lt;P&gt;Have you&amp;nbsp;resolved the issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/482845#M14822</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-07T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/482894#M14827</link>
      <description>&lt;P&gt;not yet. Below is the function that I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function Print() {&lt;BR /&gt;var embedContainer = $('#reportContainer')[0];&lt;/P&gt;&lt;P&gt;// Get a reference to the embedded report.&lt;BR /&gt;report = powerbi.get(embedContainer);&lt;/P&gt;&lt;P&gt;// Trigger the print dialog for your browser.&lt;BR /&gt;report.print()&lt;BR /&gt;.catch(function (errors) {&lt;BR /&gt;Console.log(errors);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 16:05:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/482894#M14827</guid>
      <dc:creator>tpatel</dc:creator>
      <dc:date>2018-08-07T16:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Using Javascript Promises in Internet Explorer 11</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/484070#M14851</link>
      <description>&lt;P&gt;Do you still get an error related to Promise?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 14:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Using-Javascript-Promises-in-Internet-Explorer-11/m-p/484070#M14851</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-08T14:26:04Z</dc:date>
    </item>
  </channel>
</rss>

