<?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 objects load inconsistently - qlik.openApp is not a function in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202124#M6113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually you get an object that contains a function called Promise and a function called polyfill. The Promise function should be there (though I'm not sure it's documented), haven't seen the polyfill function before and there should be some more functions, like the one you need, openApp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm running with 3.1 I get the following (which works):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164036_Capture.JPG" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Do you get any other errors? Is the require call just like above? It is important that you use "js/qlik" as dependency. Do you load anything else that might interfere with requirejs??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 12:07:17 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2017-05-19T12:07:17Z</dc:date>
    <item>
      <title>Mashup objects load inconsistently - qlik.openApp is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202121#M6110</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;I am creating mashup pages and deploying them on QlikSense server (3.0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing the issue that the mashup pages are sometimes not loading any of the Qlik objects when the page is opened. The full structure of the HTML will load, but the Qlik objects do not load at all. The current selections bar does not appear either, so it is like it is not able to establish the connection with the app / engine at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after clicking refresh a few times (same network connection etc) then the objects will eventually load with no issues. There seems no pattern to the number of refreshes needed, apart from issues seeming to occur more often with larger apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a snip of the console message. The 'qlik.openApp is not a function' error is what appears in the case when the app won't load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After seeing some other threads, I tried updating the waitSeconds parameter in the require.config to 0 but this didn't fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the full js file being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142515_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202121#M6110</guid>
      <dc:creator />
      <dc:date>2016-10-31T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup objects load inconsistently - qlik.openApp is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202122#M6111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody have any suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody else experiencing mashup pages that do not always load the Qlik objects, and just display the empty HTML structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 01:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202122#M6111</guid>
      <dc:creator />
      <dc:date>2016-11-22T01:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup objects load inconsistently - qlik.openApp is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202123#M6112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are experiencing the same problem. With Qlik Sense 3.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; require(["js/qlik"], function (qlik) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik.openApp(......)&lt;/P&gt;&lt;P&gt;fails with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uncaught TypeError: qlik.openApp is not a function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, console.log(qlik) outputs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Object {Promise: function, polyfill: function}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks &lt;SPAN style="font-size: 13.3333px;"&gt;like the &lt;/SPAN&gt;variable 'qlik' is a Promise, and not the proper qlik object. &lt;SPAN style="font-size: 10pt;"&gt;But not always! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 11:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202123#M6112</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2017-05-19T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup objects load inconsistently - qlik.openApp is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202124#M6113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually you get an object that contains a function called Promise and a function called polyfill. The Promise function should be there (though I'm not sure it's documented), haven't seen the polyfill function before and there should be some more functions, like the one you need, openApp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm running with 3.1 I get the following (which works):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164036_Capture.JPG" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Do you get any other errors? Is the require call just like above? It is important that you use "js/qlik" as dependency. Do you load anything else that might interfere with requirejs??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 12:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202124#M6113</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-05-19T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup objects load inconsistently - qlik.openApp is not a function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202125#M6114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is the object we get when it _does_ work. However, a lot of the time, we get the following object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sense-Qlik-Promise.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164103_Sense-Qlik-Promise.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Sometimes we are getting the error message: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Uncaught Error: Mismatched anonymous define() module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I just don't understand how requireJS can sometimes provide the correct object, and sometimes not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can definitely be a timing issue, or two libraries stepping on each other's feet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to use mashup in Salesforce, which uses the library Aura (Angular like). &lt;/P&gt;&lt;P&gt;A two year old post indicated that there might be an issue betewwn Aura and RequireJS (&lt;A href="https://salesforce.stackexchange.com/questions/66720/is-aura-not-compatible-with-require-js" title="https://salesforce.stackexchange.com/questions/66720/is-aura-not-compatible-with-require-js"&gt;javascript - Is Aura not compatible with require.js? - Salesforce Stack Exchange&lt;/A&gt;), but I don't know if this is still the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vegard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 05:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-objects-load-inconsistently-qlik-openApp-is-not-a/m-p/1202125#M6114</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2017-05-20T05:21:33Z</dc:date>
    </item>
  </channel>
</rss>

