<?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 Sense Mashup - Unloading Objects from Memory in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3833#M51</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Francis, that's clearer now.&amp;nbsp; Thanks for explaining.&amp;nbsp; It would be helpful if the documentation and demos talked about these advantages more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure which of these responses to mark as correct since Jonas came up with the answer, but you provided additional detail.&amp;nbsp; I don't think it's possible to make both correct is it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 16:18:23 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2018-01-22T16:18:23Z</dc:date>
    <item>
      <title>Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3825#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some issues with memory when loading a large number of objects that include GeoAnalytics maps. Can someone tell me how to unload an object once loaded with app.getObject()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have experimented with getSessionObject but without any success e.g.:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15163838901156031 jive_text_macro" jivemacro_uid="_15163838901156031" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;mapMY5YMY=app.getObject('mapMY5YMY','4fe5658d-f64f-4d2f-8df3-3cf3d697b882').then(function(model){&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; strQID= model.id;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;app.destroySessionObject(strQID);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 17:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3825#M43</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-19T17:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3826#M44</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that the way to do this is by using model.close().&amp;nbsp; However, I am using bootstrap tabs, so before doing this, I needed to identify which tab had been activated and then close all the models of the other objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I resolved this was be adding some code to the .then event of the app.getObject method.&amp;nbsp; The naming of the tab links and hrefs is important. Effectively, if the tab that is being activated is different from the sheet on which the visualization is located, then the objects on all other sheets are 'unloaded' from memory.&amp;nbsp; This seems to work well and, unsurprisingly, navigation between tabs is much quicker from a user perspective. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice for unloading to be dealt with on the Qlik Playground as I had to hunt around for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15166299399091170" jivemacro_uid="_15166299399091170" modifiedtitle="true"&gt;
&lt;P&gt;app.getObject(strDivID,strQID).then( function( model ) &lt;/P&gt;
&lt;P&gt;{&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 9pt;"&gt;//unload when navigate away from tab&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var target = $(e.target).attr("href") // activated tab&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if (target!='#tab'+strHTMLTab)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; model.close();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3826#M44</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3827#M45</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p.s. If anyone knows a better way of doing this, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3827#M45</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3828#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use the &lt;EM&gt;app.visualization.get(id)&lt;/EM&gt; instead you are able to use the visualization.close() which does just that and frees up the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;viz = app&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;visualization&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token keyword" style="color: #0000ff; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;get&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string" style="color: #b22222; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;'xGhjKl'&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;viz.close()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/get-method.htm" title="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/get-method.htm"&gt;get method ‒ Qlik Sense Developers&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/close-method.htm" title="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/close-method.htm"&gt;close method ‒ Qlik Sense Developers&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3828#M46</guid>
      <dc:creator>bgk</dc:creator>
      <dc:date>2018-01-22T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3829#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I am not familiar with the Visualization API and I have not seen any examples of it being used on the Playground or Qlik Community (perhaps I've been looking in the wrong place). They all seem to use &lt;SPAN style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function" style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;getObject e.g. &lt;/SPAN&gt; &lt;A href="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/Mashups/Content/mashups-getting-started.htm" title="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/Mashups/Content/mashups-getting-started.htm"&gt;Getting started building mashups ‒ Qlik Sense Developers &lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;A href="https://www.youtube.com/watch?v=OzzsynxIUMM" title="https://www.youtube.com/watch?v=OzzsynxIUMM"&gt;https://www.youtube.com/watch?v=OzzsynxIUMM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API seems fairly limited, so I'd be interested to hear where it is better to use the Visualization app than the 'standard' getObject approach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3829#M47</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3830#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Visualization API can create a new object or fetch an existing one, and exposes methods for showing, destroying, and updating the object. The "Walker Dashboard" on &lt;A href="http://playground.qlik.com/myplayground/sampledata/playground-zombie/gettingstarted" title="http://playground.qlik.com/myplayground/sampledata/playground-zombie/gettingstarted"&gt;Qlik Playground&lt;/A&gt;‌ uses it, and I recommend you use it exclusively over app.getObject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3830#M48</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2018-01-22T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3831#M49</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding.&amp;nbsp; If i use this method, does it prevent me from using objects from the Capabilities API, such as the selection object?&amp;nbsp; Are there any limitations that I should be aware of?&amp;nbsp; Why do you recommend using it over &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;app.getObject?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3831#M49</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3832#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the 'CurrentSelections' object, you still need to use app.getObject. For any objects you've created in the app, you can use the Visualization API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for using the Visualization API instead of the getObject method is as follows -&lt;/P&gt;&lt;P&gt;1. Using the Visualization API, I can both get objects that exist in the app, as well as create new objects.&lt;/P&gt;&lt;P&gt;2. With the getObject method, all I can do is get an object and show it immediately. With the Visualization API, there are methods for showing, closing, resizing, and setting options on an object. So I can delay showing the object if I'd like, or I can set the options on it easily (you can change dimensions and measures, colors, and pretty much anything about the object progamatically). Also, &lt;SPAN style="font-size: 13.3333px;"&gt;I can close it easily. And I see you've found a way to close the object using the getObject method, but it's an undocumented way of doing it, to me better to stick to documented way of doing it if one exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you can use both the getObject method as well as the Visualization API at the same time, they're both made available when loading the Capability APIs. But the Visualization API is capable of more than the getObject method, with the exception of grabbing the "CurrentSelections" object, so I always use the Visualization API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3832#M50</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2018-01-22T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3833#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Francis, that's clearer now.&amp;nbsp; Thanks for explaining.&amp;nbsp; It would be helpful if the documentation and demos talked about these advantages more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure which of these responses to mark as correct since Jonas came up with the answer, but you provided additional detail.&amp;nbsp; I don't think it's possible to make both correct is it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3833#M51</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T16:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3834#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say mark Jonas' as correct and mine as helpful &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3834#M52</guid>
      <dc:creator>Francis_Kabinoff</dc:creator>
      <dc:date>2018-01-22T16:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3835#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done.&amp;nbsp; Thanks to you both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3835#M53</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-22T16:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3836#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's some more information that might prove useful to anyone else who needs to exporting the data behind the visualizations that was previously using the app.getObject method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I originally hit an issue as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) My original code using the app.getObject method I am able to export the data using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15172277994212306 jive_text_macro" jivemacro_uid="_15172277994212306"&gt;
&lt;P&gt; app.getObject(strDivID,strQID).then( function( model ) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).prop('onclick',null).off('click');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).on('click', function() &lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; model.exportData().then(function( reply ) {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('qUrlModified', url);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('reply', reply);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var url = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;' + config.host +'/auth'+reply.qUrl;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; window.open(url);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) However, when I replace this with the app.visualization.get() method, I receive an error: "Uncaught TypeError: visModel.exportData is not a function"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15172281352053997 jive_text_macro" jivemacro_uid="_15172281352053997"&gt;
&lt;P&gt;app.visualization.get(strQID).then(function(vis){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vis.show(strDivID);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; visModel=vis.model;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).prop('onclick',null).off('click');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).on('click', function(visModel) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; visModel.exportData().then(function( reply ) {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('qUrlModified', url);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('reply', reply);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var url = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;' + config.host +'/auth'+reply.qUrl;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; window.open(url);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }); &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking around on the community site, I noticed that some people had used the exportData method of the Table API, so I tried this and after a bit of further de-bugging, the following works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15172292507778917" jivemacro_uid="_15172292507778917"&gt;
&lt;P&gt;app.visualization.get(strQID).then(function(vis){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vis.show(strDivID);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; visModel=vis.model;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var table = new Qlik.table(visModel);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).prop('onclick',null).off('click');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(strCmdID).on('click', function(visModel) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; table.exportData({download: true});&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3836#M54</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-29T12:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3837#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you maybe have a working example on how to close an object? I have tried everything in this thread, but I couldn't figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3837#M55</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-08-01T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3838#M56</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Casper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you use model.close() when you want to close the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15331329687346847" jivemacro_uid="_15331329687346847" modifiedtitle="true"&gt;
&lt;P&gt;app.getObject(strDivID,strQID).then( function( model ) &lt;/P&gt;
&lt;P&gt;{&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(strExport =='y')&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//configure for export of data&lt;/P&gt;
&lt;P&gt;$(strCmdID).prop('onclick',null).off('click');&lt;/P&gt;
&lt;P&gt;$(strCmdID).on('click', function() &lt;/P&gt;
&lt;P&gt;{&amp;nbsp; &lt;/P&gt;
&lt;P&gt;exportData(model);&lt;/P&gt;
&lt;P&gt;$(strCmdID).hide();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;if(strQSType !='extension' &amp;amp;&amp;amp; strQSType!='text/image')&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;//unload when navigate away from tab&lt;/P&gt;
&lt;P&gt;$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var target = $(e.target).attr("href") // activated tab&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (target!='#tab'+strHTMLTab)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;model.close();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the extract above, you will see that model.close() is called where the name of the tab clicked is not the same as that containing the object.&amp;nbsp; Whenever a tab is clicked I call the function which contains this extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 14:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3838#M56</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-08-01T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Mashup - Unloading Objects from Memory</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3839#M57</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. The thing is, I understand what you are doing (calling model.close() whenever the name of the tab isn't the same as the tab that contains the specific object. The problem is, I am also working with tabs and I just don't understand how I can make this work. I just can't translate your example to my mashup and I can't tinker with this because it's not really a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there maybe a way to show a really simple html/js example that works? Because I am really curious on how you place your QV inside the html and how you replaced the app.getObject.inside your .js.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help and the fast response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 14:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-Unloading-Objects-from-Memory/m-p/3839#M57</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-08-01T14:33:48Z</dc:date>
    </item>
  </channel>
</rss>

