<?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 Passing around an App object versus calling qlik.currApp() when needed in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Passing-around-an-App-object-versus-calling-qlik-currApp-when/m-p/1662241#M12067</link>
    <description>&lt;P&gt;What is the best practice when using the App object associated with your extension? Should you only request it once, then pass it around or can you request it whenever you want?&lt;/P&gt;&lt;P&gt;I started by requesting &lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; once, then passing it around. Eventually, that felt cumbersome, so to streamline the marshalling and passing of data to callbacks I tried just calling &lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt;&amp;nbsp;when I needed my App object and suddenly nothing worked.&lt;/P&gt;&lt;P&gt;What would cause these App Objects to differ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; invoked in &lt;FONT face="courier new,courier"&gt;mounted()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; invoked during a callback from &lt;FONT face="courier new,courier"&gt;Field().OnData.once()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(Edited to fix spelling mistake.)&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 19:57:49 GMT</pubDate>
    <dc:creator>BradMazurek</dc:creator>
    <dc:date>2020-01-02T19:57:49Z</dc:date>
    <item>
      <title>Passing around an App object versus calling qlik.currApp() when needed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Passing-around-an-App-object-versus-calling-qlik-currApp-when/m-p/1662241#M12067</link>
      <description>&lt;P&gt;What is the best practice when using the App object associated with your extension? Should you only request it once, then pass it around or can you request it whenever you want?&lt;/P&gt;&lt;P&gt;I started by requesting &lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; once, then passing it around. Eventually, that felt cumbersome, so to streamline the marshalling and passing of data to callbacks I tried just calling &lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt;&amp;nbsp;when I needed my App object and suddenly nothing worked.&lt;/P&gt;&lt;P&gt;What would cause these App Objects to differ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; invoked in &lt;FONT face="courier new,courier"&gt;mounted()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;qlik.currApp()&lt;/FONT&gt; invoked during a callback from &lt;FONT face="courier new,courier"&gt;Field().OnData.once()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(Edited to fix spelling mistake.)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 19:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Passing-around-an-App-object-versus-calling-qlik-currApp-when/m-p/1662241#M12067</guid>
      <dc:creator>BradMazurek</dc:creator>
      <dc:date>2020-01-02T19:57:49Z</dc:date>
    </item>
  </channel>
</rss>

