<?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 Multiple baseUrls of RequireJS in a remote server mashup in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Multiple-baseUrls-of-RequireJS-in-a-remote-server-mashup/m-p/1238065#M6593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;BR /&gt;I'm working on a project based on a qliksense mashup. This project is hosted in a different server than qliksense server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the project uses requireJS to import everything and the baseURL of the requirejs config is a folder of this server.&lt;BR /&gt;To use Qliksense API I need to use the baseURL of the qliksense server too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point..my questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to &lt;SPAN style="font-size: 13.3333px;"&gt;declare two baseURL o something like that? How?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If this is not possible, are there any way to solve my problem?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 16:10:30 GMT</pubDate>
    <dc:creator>eric_careta</dc:creator>
    <dc:date>2016-11-11T16:10:30Z</dc:date>
    <item>
      <title>Multiple baseUrls of RequireJS in a remote server mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Multiple-baseUrls-of-RequireJS-in-a-remote-server-mashup/m-p/1238065#M6593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;BR /&gt;I'm working on a project based on a qliksense mashup. This project is hosted in a different server than qliksense server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the project uses requireJS to import everything and the baseURL of the requirejs config is a folder of this server.&lt;BR /&gt;To use Qliksense API I need to use the baseURL of the qliksense server too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point..my questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to &lt;SPAN style="font-size: 13.3333px;"&gt;declare two baseURL o something like that? How?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If this is not possible, are there any way to solve my problem?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Multiple-baseUrls-of-RequireJS-in-a-remote-server-mashup/m-p/1238065#M6593</guid>
      <dc:creator>eric_careta</dc:creator>
      <dc:date>2016-11-11T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple baseUrls of RequireJS in a remote server mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Multiple-baseUrls-of-RequireJS-in-a-remote-server-mashup/m-p/1238066#M6594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think&lt;/STRONG&gt; you should be able to do:&lt;/P&gt;&lt;PRE&gt;
&lt;P&gt;&lt;CODE&gt;require( ["js/my_internal_module"], function ( myInternalModule ) { &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //get all you "local" modules&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require.config( { &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources" &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } ); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require( ["js/qlik"], function ( qlik ) { &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //use myInternalModule and qlik&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;}); &lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 07:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Multiple-baseUrls-of-RequireJS-in-a-remote-server-mashup/m-p/1238066#M6594</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2016-11-14T07:08:59Z</dc:date>
    </item>
  </channel>
</rss>

