<?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: qlik.currApp() with 2 different apps in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670479#M12228</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;, thank you for your answer!! I try to be clearly.&lt;/P&gt;&lt;P&gt;In order to create a mashup with 2 linked Qlik Sense Apps, i wrote a config js file that take in input a variable (appId) and create a link with the related app. (code below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27655i8C2B0A2F8BF612E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura2.PNG" alt="Cattura2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The getApp() method is implementd in a qCapability js and is used to open apps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura3.PNG" style="width: 384px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27656i07F85EDA8C9FC047/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura3.PNG" alt="Cattura3.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end, Into the views controller (i use MVC pattern to develop) i have this LOC&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27658i20B8CC51C4BFD073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;used to get the app reference and manage page objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need is a way to pass an app object to the currApp() method (if it's possible) and have in all parts of my code, the right reference to the right app!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope i was clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 13:21:22 GMT</pubDate>
    <dc:creator>BU</dc:creator>
    <dc:date>2020-01-29T13:21:22Z</dc:date>
    <item>
      <title>qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670349#M12223</link>
      <description>&lt;P&gt;Hi all, i'm triyn' to develop a mashup that takes chart from 2 different Qlik Sense apps. i get the app object using the Root API method qlik.currApp().&lt;/P&gt;&lt;P&gt;I saw currApp() can take a parameter &lt;EM&gt;reference&amp;nbsp;&lt;/EM&gt;but i'm not able to use this in the correct way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me some help?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot and have a good day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ale&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670349#M12223</guid>
      <dc:creator>BU</dc:creator>
      <dc:date>2024-11-16T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670362#M12224</link>
      <description>&lt;P&gt;The problem is that in some cases, currApp() takes the reference of a wrong app!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670362#M12224</guid>
      <dc:creator>BU</dc:creator>
      <dc:date>2020-01-29T10:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670389#M12226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87131"&gt;@BU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You probably shouldn't use qlik.currApp() in a mashup, always use qlik.openApp() instead.&lt;/P&gt;
&lt;P&gt;If you are talking about a 3rd party visualization (extension) that uses qlik.currApp() and is rendered in a mashup - then always try to use qlik-currApp(this) &amp;lt;- this is the reference of the extensions object, it contains the app model, so it doesn't get confused about which app is current app.&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;
&lt;P&gt;/aiham&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 11:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670389#M12226</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2020-01-29T11:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670479#M12228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;, thank you for your answer!! I try to be clearly.&lt;/P&gt;&lt;P&gt;In order to create a mashup with 2 linked Qlik Sense Apps, i wrote a config js file that take in input a variable (appId) and create a link with the related app. (code below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27655i8C2B0A2F8BF612E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura2.PNG" alt="Cattura2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The getApp() method is implementd in a qCapability js and is used to open apps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura3.PNG" style="width: 384px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27656i07F85EDA8C9FC047/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura3.PNG" alt="Cattura3.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end, Into the views controller (i use MVC pattern to develop) i have this LOC&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Cattura.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27658i20B8CC51C4BFD073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;used to get the app reference and manage page objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need is a way to pass an app object to the currApp() method (if it's possible) and have in all parts of my code, the right reference to the right app!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope i was clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670479#M12228</guid>
      <dc:creator>BU</dc:creator>
      <dc:date>2020-01-29T13:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670808#M12232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You are not using qlik.currApp() in an extension, so `this` in your context is the function itself, the logic behind .currApp method will fallback by getting the first opened app - that can be random&lt;/P&gt;
&lt;P&gt;For that to work, you need to send qlik.currApp({app.qlikApp}), but even in this case, I still recommend you to use qlik.openApp - and you don't have to worry about opening multiple websockets -- once an app is opened, when running qlik.openApp the second time, it will return the cached app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670808#M12232</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2020-01-30T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: qlik.currApp() with 2 different apps</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670813#M12233</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;I was worried about memory impact but it seems to work quite well!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AB&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-currApp-with-2-different-apps/m-p/1670813#M12233</guid>
      <dc:creator>BU</dc:creator>
      <dc:date>2020-01-30T10:26:37Z</dc:date>
    </item>
  </channel>
</rss>

