<?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: External libray permission refused in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/90304#M3207</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16923"&gt;@amassip﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my test, you could modify the .ts file as shown below.&lt;/P&gt;&lt;PRE&gt;		private window: any;

        constructor(options: VisualConstructorOptions) {
			this.window = window;

			var items = new this.window.vis.DataSet([&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Nov 2016 11:46:28 GMT</pubDate>
    <dc:creator>v-chuncz-msft</dc:creator>
    <dc:date>2016-11-16T11:46:28Z</dc:date>
    <item>
      <title>External libray permission refused</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/89856#M3193</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to add an external library ( from &lt;A href="http://visjs.org/index.html#download_install" target="_blank"&gt;http://visjs.org/index.html#download_install&lt;/A&gt; ) so i followed the tutorial : create new external folder, add the js file inside and update the tsconfig.json.&lt;/P&gt;&lt;P&gt;In visual.ts I declare a global variable, because there is no d.ts file in the library, with this line :&lt;BR /&gt;declare var vis: any;&lt;/P&gt;&lt;P&gt;Then I want to call a function :&lt;/P&gt;&lt;PRE&gt;var items = new vis.DataSet([
                { id: 1, content: 'item 1', start: '2014-04-20' },
                { id: 2, content: 'item 2', start: '2014-04-14' },
                { id: 3, content: 'item 3', start: '2014-04-18' },
                { id: 5, content: 'item 5', start: '2014-04-25' }
            ]);&lt;/PRE&gt;&lt;P&gt;But if I go to the internet explorer's console i can see an error :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Permission denied&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So what's wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with another library which has a d.ts but even with the declaration file i have the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/89856#M3193</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-11-15T13:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: External libray permission refused</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/90304#M3207</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/16923"&gt;@amassip﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my test, you could modify the .ts file as shown below.&lt;/P&gt;&lt;PRE&gt;		private window: any;

        constructor(options: VisualConstructorOptions) {
			this.window = window;

			var items = new this.window.vis.DataSet([&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/90304#M3207</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2016-11-16T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: External libray permission refused</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/90335#M3209</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/11389"&gt;@v-chuncz-msft﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you so much it works !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;how does the variable window work ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 12:58:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/External-libray-permission-refused/m-p/90335#M3209</guid>
      <dc:creator>amassip</dc:creator>
      <dc:date>2016-11-16T12:58:16Z</dc:date>
    </item>
  </channel>
</rss>

