<?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 Extension Invalid Visualization error in Mashup on Qlik Server in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Invalid-Visualization-error-in-Mashup-on-Qlik-Server/m-p/1747126#M13289</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I am developing a Mashup hosted on the Qlik Server. A very simple one, embedding Qlik visualisation in a html page. One of the visualisation uses Articque Map Extension.&lt;/P&gt;&lt;P&gt;The first version of the mashup had only three files :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index.html&lt;/LI&gt;&lt;LI&gt;index.css&lt;/LI&gt;&lt;LI&gt;index.js &amp;lt;--- where all the magic happens. This is where I connect to the app and retrieve the objects with app.getObject()&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything was working fine.&lt;/P&gt;&lt;P&gt;Then I decided to refactor the code. The second version of the mashup has this organisation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index.html&lt;/LI&gt;&lt;LI&gt;index.css&lt;/LI&gt;&lt;LI&gt;index.js &amp;lt;--- has prefix, config, require.config and qlik.openApp()&lt;/LI&gt;&lt;LI&gt;app/app.js &amp;lt;--- declare the modules header/selection and qlik/qselements&lt;/LI&gt;&lt;LI&gt;app/header/selection.js &amp;lt;--- has app.getList("SelectionObject")&lt;/LI&gt;&lt;LI&gt;app/qlik/qselements.js &amp;lt;--- has all the app.getObjects() commands&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And this is where I don't understand what is happening. All but the Articque Map visualizations are displayed correctly. The console shows the following two errors:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Error: Mismatched anonymous define() module [...] -- linked to the app/app.js&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox-stackTrace"&gt;TypeError: "e.getLayout is not a function"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; -- linked to the extensions/articquemap/articquemap.js&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've included &lt;EM&gt;app/app.js&lt;/EM&gt; and &lt;EM&gt;index.js&lt;/EM&gt; as attachements.&lt;/P&gt;&lt;P&gt;I feel my problem has to be with the &lt;EM&gt;app/app.js&lt;/EM&gt; and how I declare context in &lt;EM&gt;index.js&lt;/EM&gt;. However, I'm pretty new at Javascrip and I can't get to find the solution.&lt;/P&gt;&lt;P&gt;Any help will be appreciated!&lt;/P&gt;&lt;P&gt;Thanks for reading through the end.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:23:15 GMT</pubDate>
    <dc:creator>sdrappeau</dc:creator>
    <dc:date>2024-11-16T01:23:15Z</dc:date>
    <item>
      <title>Extension Invalid Visualization error in Mashup on Qlik Server</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Invalid-Visualization-error-in-Mashup-on-Qlik-Server/m-p/1747126#M13289</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I am developing a Mashup hosted on the Qlik Server. A very simple one, embedding Qlik visualisation in a html page. One of the visualisation uses Articque Map Extension.&lt;/P&gt;&lt;P&gt;The first version of the mashup had only three files :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index.html&lt;/LI&gt;&lt;LI&gt;index.css&lt;/LI&gt;&lt;LI&gt;index.js &amp;lt;--- where all the magic happens. This is where I connect to the app and retrieve the objects with app.getObject()&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything was working fine.&lt;/P&gt;&lt;P&gt;Then I decided to refactor the code. The second version of the mashup has this organisation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;index.html&lt;/LI&gt;&lt;LI&gt;index.css&lt;/LI&gt;&lt;LI&gt;index.js &amp;lt;--- has prefix, config, require.config and qlik.openApp()&lt;/LI&gt;&lt;LI&gt;app/app.js &amp;lt;--- declare the modules header/selection and qlik/qselements&lt;/LI&gt;&lt;LI&gt;app/header/selection.js &amp;lt;--- has app.getList("SelectionObject")&lt;/LI&gt;&lt;LI&gt;app/qlik/qselements.js &amp;lt;--- has all the app.getObjects() commands&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And this is where I don't understand what is happening. All but the Articque Map visualizations are displayed correctly. The console shows the following two errors:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Error: Mismatched anonymous define() module [...] -- linked to the app/app.js&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox-stackTrace"&gt;TypeError: "e.getLayout is not a function"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; -- linked to the extensions/articquemap/articquemap.js&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've included &lt;EM&gt;app/app.js&lt;/EM&gt; and &lt;EM&gt;index.js&lt;/EM&gt; as attachements.&lt;/P&gt;&lt;P&gt;I feel my problem has to be with the &lt;EM&gt;app/app.js&lt;/EM&gt; and how I declare context in &lt;EM&gt;index.js&lt;/EM&gt;. However, I'm pretty new at Javascrip and I can't get to find the solution.&lt;/P&gt;&lt;P&gt;Any help will be appreciated!&lt;/P&gt;&lt;P&gt;Thanks for reading through the end.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Invalid-Visualization-error-in-Mashup-on-Qlik-Server/m-p/1747126#M13289</guid>
      <dc:creator>sdrappeau</dc:creator>
      <dc:date>2024-11-16T01:23:15Z</dc:date>
    </item>
  </channel>
</rss>

