<?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: Mashup API context in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685989#M2191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know. But how can I use it from a different webserver? I would usually not use it on the Qlik Sense server...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 19:40:48 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2014-09-24T19:40:48Z</dc:date>
    <item>
      <title>Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685987#M2189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is it possible to use the Mashup API from a different context than &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848"&gt;http://localhost:4848&lt;/A&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 15:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685987#M2189</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685988#M2190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;Mashups API are used to display &lt;/SPAN&gt;&lt;SPAN class="PrimaryGenericName" style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt; objects on your website. It allows you to get objects, add buttons, create bookmarks and interact with fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;A href="https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qswb_mup_apireference.htm%3FTocPath%3DQlik%2520Sense%2520Workbench%7CAPI%2520reference%7CQlik%2520Sense%2520Mashups%2520API%2520reference%7C_____0" style="font-family: Arial, Helvetica, sans-serif;" title="https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qswb_mup_apireference.htm%3FTocPath%3DQlik%2520Sense%2520Workbench%7CAPI%2520reference%7CQlik%2520Sense%2520Mashups%2520API%2520reference%7C_____0"&gt;https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qswb_mup_api…&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Qlik Sense Workbench (&lt;A class="jive-link-external-small" href="http://localhost:4848/" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;http://localhost:4848&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;) is a way to make the mashup easier to use. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 19:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685988#M2190</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2014-09-24T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685989#M2191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know. But how can I use it from a different webserver? I would usually not use it on the Qlik Sense server...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 19:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685989#M2191</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685990#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The mashup calls are directed to the server defined in the mashup JS file. So if you make a template based mashup, you will find these details in the JS file named as the mashup. In the first section a config and application setup is done, as described in the help page below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qlik.htm" title="https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qlik.htm"&gt;ps://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Workbench/Content/BuildingWebsites/API/qlik.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 20:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685990#M2192</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2014-09-24T20:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685991#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Yes, I have seen this. But how can I load &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;:4848/resources/js/qlik.js (and other js/css files) from another context? Or, is there a package of js/css files I can use?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 20:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685991#M2193</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T20:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685992#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If you generate your mashup through the Qlik Sense work bench, the mashup html file will have the required includes in the html head. The&amp;nbsp; JS file will initiate the connection to Qlik Sense Server and get the referred objects. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have included a custom extension the required JS files for that extension will be included automagically. There is no need for additional inclusions from the Qlik Sense server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The arbitrary page where you include the Qlik Sense objects will include and handle CSS and JS just as usual. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hard time understanding exactly what you are trying to do, and where you get stuck. Can you upload a couple example files to exemplify the scenario?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 19:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685992#M2194</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2014-09-25T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685993#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I undestand everything what is created from workbench very well but it works only in the same context. For my opinion nobody needs a mashup running on Qlik Sense context. How can we create mashups running on a different web server? So, how we can pull in Qlik Sense objects in a web site or portal? That would be the normal use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 19:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685993#M2195</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-25T19:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685994#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you run into CORS (&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS" title="https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS"&gt;HTTP access control (CORS) - HTTP | MDN&lt;/A&gt;) problems, as the browser declines usage of JS loaded from a different webserver than the one your mashup-Page is hosted on.&lt;/P&gt;&lt;P&gt;Maybe providing a simple proxy on your host apps server that redirects all calls to the Qlik Sense Proxy and thus acts as if everything is provided by your own web server would solve this.&lt;/P&gt;&lt;P&gt;I am currently dealing with such a problem in Nodejs and QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or alternatively, adding the allow-origin-access-control response header to the proxy might help:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="67722" alt="cors.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67722_cors.PNG.png" style="width: 620px; height: 417px;" /&gt;&lt;/P&gt;&lt;P&gt;But I could not test this, so please give it a try on your own - and pray.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685994#M2196</guid>
      <dc:creator />
      <dc:date>2014-09-26T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685995#M2197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;You actually need to make changes in both HTML and js files. In the HTML file you need to change the links that are at the beginning so that they point to your QlikSense server:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: darkgreen;"&gt;&amp;lt;!--Add host to these 3 links if the mashup is on another webserver than qlikview static content--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;link&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;rel&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"stylesheet"&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;href&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"/resources/assets/qirby/autogenerated/qirby.css"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;link&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;rel&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"stylesheet"&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;href&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"/resources/assets/client/client.css"&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;media&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"all"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;script&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;src&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;"/resources/js/external/requirejs/require.js"&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This will make the browser find the css files and requirejs javascript library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the javascript file you need to configure requirejs with your QlikSense host so that it finds qlik.js and the apps:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; config = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host:'yourhost.com'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefix: &lt;SPAN style="color: maroon;"&gt;"/"&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port: 443,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isSecure: true&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;require.config( {&lt;/P&gt;
&lt;P&gt;baseUrl: ( config.isSecure ? &lt;SPAN style="color: maroon;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; : &lt;SPAN style="color: maroon;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://"&gt;http://&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; ) + config.host + (config.port ? &lt;SPAN style="color: maroon;"&gt;":"&lt;/SPAN&gt; + config.port: &lt;SPAN style="color: maroon;"&gt;""&lt;/SPAN&gt;) + config.prefix + &lt;SPAN style="color: maroon;"&gt;"resources"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;} );&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The default configuration is based on running the mashup from Qlik Sense and takes configuration from windows.location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a known limitation that using extensions in a mashup hosted on an external web server does not work because of CORS problems. We are working on a solution for this. We hope to be able to simplify this setup in future releases, but this is how it works in 1.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685995#M2197</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-09-26T08:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685996#M2198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas and Erik! Would it help to have all used and related js/css soruces on the different site locally?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685996#M2198</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-26T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup API context</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685997#M2199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know we haven't really verified saving qlik's css and js files on the external web server. Iguess that it is possible at least with the links in the html file. Note that in the mashup created from mashup workbench the config object is used both for requirejs config basepath and when opening the actual app (the websocket url is based in this data).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-API-context/m-p/685997#M2199</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-09-29T06:12:26Z</dc:date>
    </item>
  </channel>
</rss>

