<?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 - Second app: &amp;quot;TypeError: Cannot read property 'id' of undefined&amp;quot; in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599318#M10919</link>
    <description>&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;are you using the same user to develop the mashup from Dev-Hub and to verify it from another browser?&lt;BR /&gt;Are the QS apps published on a stream available to such user(s)?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Riccardo&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2019 08:17:07 GMT</pubDate>
    <dc:creator>rzenere_avvale</dc:creator>
    <dc:date>2019-07-05T08:17:07Z</dc:date>
    <item>
      <title>Mashup - Second app: "TypeError: Cannot read property 'id' of undefined"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599222#M10911</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;encountered an error when attempting to replicate the example of multiple(2) apps within a single mashup.&lt;/P&gt;&lt;P&gt;&lt;A title="Adding objects from multiple Qlik Sense apps" href="http://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Dev-Hub/Content/Howtos/dev-hub-add-objects-from-multiple-apps.htm" target="_self"&gt;help.qlik.com/en-US/sense-developer/June2018/Subsystems/Dev-Hub/Content/Howtos/dev-hub-add-objects-from-multiple-apps.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One visualization from each app has been inserted.&amp;nbsp;When viewed using the dev-hub mashup editor "View" button the page shows both visualizations.&lt;/P&gt;&lt;P&gt;When inserting the URL into a browser outside of the dev-hub&amp;nbsp;&amp;nbsp;(after clearing the browser cache) only one of the visualizations shows. "TypeError: Cannot read property 'id' of undefined" is produced.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;QlikSense version June 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="flex-container"&amp;gt;
	&amp;lt;div id="QV01" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV02" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV03" class="qvplaceholder"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV04" class="qvplaceholder"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV05" class="qvplaceholder"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV06" class="qvplaceholder"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	//open apps -- inserted here --
	var app = qlik.openApp('197068e3-8cbe-45ea-9950-5a86cad966ef', config); 
	var app1 = qlik.openApp('fe64ef23-ebcc-4d24-8f95-994f3234cbe8', config);
	
	//get objects -- inserted here --
	app1.getObject('QV02','f99a8ef5-b104-499d-9d41-1a6c3edc0b61');
	app.getObject('QV01','mMaemz');&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mashup Error.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14940i92D7CA40220DCBA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mashup Error.JPG" alt="Mashup Error.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mashup Dev-Hub.jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14941iF845CDD1B8954915/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mashup Dev-Hub.jpg" alt="Mashup Dev-Hub.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 21:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599222#M10911</guid>
      <dc:creator>sjl</dc:creator>
      <dc:date>2019-07-04T21:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup - Second app: "TypeError: Cannot read property 'id' of undefined"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599318#M10919</link>
      <description>&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;are you using the same user to develop the mashup from Dev-Hub and to verify it from another browser?&lt;BR /&gt;Are the QS apps published on a stream available to such user(s)?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Riccardo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 08:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599318#M10919</guid>
      <dc:creator>rzenere_avvale</dc:creator>
      <dc:date>2019-07-05T08:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup - Second app: "TypeError: Cannot read property 'id' of undefined"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599549#M10923</link>
      <description>&lt;P&gt;Hello Riccardo,&lt;/P&gt;&lt;P&gt;Many thanks for the reply.&lt;/P&gt;&lt;P&gt;Yes both apps are published apps, and the user is the same in dev-hub as outside of it. I do clear the browser cache to simulate what a real world user would experience.&lt;/P&gt;&lt;P&gt;Interestingly the error is intermittent.&lt;/P&gt;&lt;P&gt;I did wonder if it was a sequencing issue. In that the &lt;SPAN&gt;openApp&amp;nbsp;&lt;/SPAN&gt;was not completing in time for the getObject that follows? I understand the require.js calls are asynchronous(?).&lt;/P&gt;&lt;P&gt;I've seen some code in my internet searches utilizing promises. The example as used from the the Qlik site did not demonstrate this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 01:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-Second-app-quot-TypeError-Cannot-read-property-id-of/m-p/1599549#M10923</guid>
      <dc:creator>sjl</dc:creator>
      <dc:date>2019-07-06T01:35:00Z</dc:date>
    </item>
  </channel>
</rss>

