<?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: Example of using exportData method in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092080#M4864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anonymous users can't export data, if you want to allow exporting of content then you would need to authenticate them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 23:06:55 GMT</pubDate>
    <dc:creator>Alexander_Thor</dc:creator>
    <dc:date>2016-11-16T23:06:55Z</dc:date>
    <item>
      <title>Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092077#M4861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is someone able to help me with an example of how to use the exportData method, documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/TableAPI/exportData-method.htm" title="https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/TableAPI/exportData-method.htm"&gt;https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/APIs/Content/TableAPI/exportData-method.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a button in my HTML mashup page, which exports the data held in a Qliksense table that has been embedded in the mashup page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see from the code example it is simple to assign exportData method to the button. What I am struggling with initialising the qTable variable with the correct table object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pulling the table into my mashup with the Javascript below, and the relevant div to be populated in the HTML has a data-qvid attribute where the objectID for the Qliksense object is populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1458163301545814 jive_text_macro" jivemacro_uid="_1458163301545814" modifiedtitle="true"&gt;
&lt;P&gt;var app = qlik.openApp( "myApp.qvf", config );&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$( ".qvobject" ).each( function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var qvid = $( this ).data( "qvid" );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject( this, qvid ).then( function ( object ) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qvobjects[qvid] = object;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } );&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So how do I then access the app variable I create above, to populate a new variable like the below using the relevant objectID:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN class="token keyword" style="color: blue; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt; qTable &lt;/SPAN&gt;&lt;SPAN class="token operator" style="color: #999999; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background: #fafafa;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt; qlik&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;table&lt;SPAN class="token punctuation" style="color: #999999;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token keyword" style="color: blue; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; background-color: #fafafa;"&gt;this&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 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 21:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092077#M4861</guid>
      <dc:creator />
      <dc:date>2016-03-16T21:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092078#M4862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14581683321004405 jive_text_macro" jivemacro_uid="_14581683321004405" modifiedtitle="true"&gt;
&lt;P&gt;app.getObject('objectid').then(function(model) {&lt;/P&gt;
&lt;P&gt; var table = qlik.table(model);&lt;/P&gt;
&lt;P&gt; table.exportData({download: true});&lt;/P&gt;
&lt;P&gt;})&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a working sample &lt;A href="https://jsfiddle.net/mindspank/zm2yfvbu/" title="https://jsfiddle.net/mindspank/zm2yfvbu/"&gt;Export Data - JSFiddle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It will say access denied when you try to export due to exporting being disabled fro anonymous users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 22:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092078#M4862</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2016-03-16T22:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092079#M4863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander, I use your method to export/download data from Qlik sense mashup table object.&lt;/P&gt;&lt;P&gt;However, I get "access denied" error.&lt;/P&gt;&lt;P&gt;Could you please tell how to configure in Qlik server to allow &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;anonymous users export/download data from Qlik sense mashup page?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 22:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092079#M4863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092080#M4864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anonymous users can't export data, if you want to allow exporting of content then you would need to authenticate them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 23:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092080#M4864</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2016-11-16T23:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092081#M4865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Alexander, thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So, it means there are only two choices: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1: anonymous users, can not export/download data from Qlik sense mashup page&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2: to be able to export/download data from Qlik mashup page, must have a user name/password from Qlik server,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;is it right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there any walk-around?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 23:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092081#M4865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T23:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092082#M4866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no passwords in Qlik but ye that's the idea. Just authenticate the user hitting the page and exporting will work. It doesn't have to be a real user, just generate a random username&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 23:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092082#M4866</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2016-11-16T23:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092083#M4867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Alexander, thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Could you please help further explain the following two procedures?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1: &lt;/SPAN&gt;Just authenticate the user hitting the page and exporting will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;How to authenticate the user hitting the page? Does it require the user having authentication to access the Qlik server (they are &lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;anonymous users&lt;/SPAN&gt;) &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;2: It doesn't have to be a real user, just generate a random username&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;How to generate a random username? Should I generate the random users in Qlik mashup or should I generate random user in Qlik server? If we generate the random user in Qlik server, how could the anonymous users to use it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could you please help explain the above questions in detail? If there is an example, that will be great. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your time and help! &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 14:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092083#M4867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-17T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092084#M4868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Alexander, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to export data from Qlik sense mashup for Qlik sense anonymous users?&lt;/P&gt;&lt;P&gt;Qlik sense exportData and Table API only work for Qlik sense authorized users, but do not work for Qlik sense anonymous users.&lt;/P&gt;&lt;P&gt;However, the published Qlik sense mashup is public access WITHOUT Qlik sense user_id and password, how to make it to export data from Qlik sense mashup for Qlik sense anonymous user?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1092084#M4868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-16T17:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using exportData method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1674789#M12318</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to cancel the request of ExportData() using Mashup API how can we do that ?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 12:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Example-of-using-exportData-method/m-p/1674789#M12318</guid>
      <dc:creator>jitu2110</dc:creator>
      <dc:date>2020-02-12T12:50:31Z</dc:date>
    </item>
  </channel>
</rss>

