<?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 Get all pivot table data in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-all-pivot-table-data/m-p/1835898#M15573</link>
    <description>&lt;P&gt;Hello colleagues!&lt;/P&gt;&lt;P&gt;I am developing my own pivot table extension. Faced the problem of getting complete data.&lt;/P&gt;&lt;P&gt;If I create a regular table, then I use the following construction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var qTotalData = [];

var totalrow = this.backendApi.getRowCount(),
    columns = hc.qDimensionInfo.length + hc.qMeasureInfo.length,
    pageheight = Math.floor(10000 / columns);

var lastrow = 0, me = this;

this.backendApi.eachDataRow( function ( rownum, row ) {
    lastrow = rownum;
    qTotalData.push(row)
});

if (totalrow &amp;gt; lastrow + 1) {
    var requestPage = [{
        qTop: lastrow + 1,
	    qLeft: 0,
	    qWidth: columns,
	    qHeight: pageheight
    }];

    this.backendApi.getPivotData( requestPage ).then( function ( dataPages ) {
        me.paint( $element, layout );
    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method does not work with pivot tables.&lt;/P&gt;&lt;P&gt;I found that there is a &lt;STRONG&gt;getPivotData method&lt;/STRONG&gt;, but I don't know how to use it to get all the data in the pivot table.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;eachDataRow method&lt;/STRONG&gt; does not return anything (does not work as I expected) and I cannot redraw the extension, hence the &lt;EM&gt;lastrow&lt;/EM&gt; does not increase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to get complete data on a pivot table?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With respect George.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:44:39 GMT</pubDate>
    <dc:creator>g_bolshakov</dc:creator>
    <dc:date>2024-11-15T23:44:39Z</dc:date>
    <item>
      <title>Get all pivot table data</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-all-pivot-table-data/m-p/1835898#M15573</link>
      <description>&lt;P&gt;Hello colleagues!&lt;/P&gt;&lt;P&gt;I am developing my own pivot table extension. Faced the problem of getting complete data.&lt;/P&gt;&lt;P&gt;If I create a regular table, then I use the following construction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var qTotalData = [];

var totalrow = this.backendApi.getRowCount(),
    columns = hc.qDimensionInfo.length + hc.qMeasureInfo.length,
    pageheight = Math.floor(10000 / columns);

var lastrow = 0, me = this;

this.backendApi.eachDataRow( function ( rownum, row ) {
    lastrow = rownum;
    qTotalData.push(row)
});

if (totalrow &amp;gt; lastrow + 1) {
    var requestPage = [{
        qTop: lastrow + 1,
	    qLeft: 0,
	    qWidth: columns,
	    qHeight: pageheight
    }];

    this.backendApi.getPivotData( requestPage ).then( function ( dataPages ) {
        me.paint( $element, layout );
    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method does not work with pivot tables.&lt;/P&gt;&lt;P&gt;I found that there is a &lt;STRONG&gt;getPivotData method&lt;/STRONG&gt;, but I don't know how to use it to get all the data in the pivot table.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;eachDataRow method&lt;/STRONG&gt; does not return anything (does not work as I expected) and I cannot redraw the extension, hence the &lt;EM&gt;lastrow&lt;/EM&gt; does not increase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to get complete data on a pivot table?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With respect George.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-all-pivot-table-data/m-p/1835898#M15573</guid>
      <dc:creator>g_bolshakov</dc:creator>
      <dc:date>2024-11-15T23:44:39Z</dc:date>
    </item>
  </channel>
</rss>

