<?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: Root API in Extension making app lose connection in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120482#M19210</link>
    <description>&lt;P&gt;The issue still persisted even after removing the config, but the second option you listed of using the global object under the currentApp worked!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 13:55:03 GMT</pubDate>
    <dc:creator>BenjaminGroff</dc:creator>
    <dc:date>2023-09-20T13:55:03Z</dc:date>
    <item>
      <title>Root API in Extension making app lose connection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120145#M19202</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;
&lt;P&gt;I'm trying to make a new extension that allows us to actively monitor app reload times without needing to reload the app itself!&lt;/P&gt;
&lt;P&gt;I'm attempting to do this using the "getAppList" method in the Root API:&amp;nbsp;&lt;SPAN&gt;qlik.getAppList(callback, config)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminGroff_0-1695156471531.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116609i986B0426459652E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjaminGroff_0-1695156471531.png" alt="BenjaminGroff_0-1695156471531.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The same code snippet works in a mashup but when I try to use it in an extension it returns a result but throws the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminGroff_1-1695156627801.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116610i40C72D274293719C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjaminGroff_1-1695156627801.png" alt="BenjaminGroff_1-1695156627801.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From the documentation it looks like I should be able to use this method in an extension:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminGroff_2-1695156705936.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116611iFA102251F646189B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjaminGroff_2-1695156705936.png" alt="BenjaminGroff_2-1695156705936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just curious is this method is incompatible with extensions or why the error is being thrown! Any insight would be greatly appreciated! Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120145#M19202</guid>
      <dc:creator>BenjaminGroff</dc:creator>
      <dc:date>2023-09-19T21:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Root API in Extension making app lose connection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120216#M19207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156950"&gt;@BenjaminGroff&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Within an extension, you don't need to initiate a new connection to Qlik Sense (this is what the config is for), removing the config should do the trick (...if I remember well).&lt;/P&gt;
&lt;P&gt;Perhaps an even better solution is to use the global object under the currentApp:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const app = qlik.currApp();
app.global.getAppList(...);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I hope this helps,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 05:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120216#M19207</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2023-09-20T05:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Root API in Extension making app lose connection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120482#M19210</link>
      <description>&lt;P&gt;The issue still persisted even after removing the config, but the second option you listed of using the global object under the currentApp worked!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 13:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Root-API-in-Extension-making-app-lose-connection/m-p/2120482#M19210</guid>
      <dc:creator>BenjaminGroff</dc:creator>
      <dc:date>2023-09-20T13:55:03Z</dc:date>
    </item>
  </channel>
</rss>

