<?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 Extension for pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extension-for-pivot-table/m-p/1456656#M794009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using enterprise edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m Trying to &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;create a extension&lt;/STRONG&gt;&lt;/SPAN&gt; to change the css layout of pivot table. The problem is that the table look like a straight in spite of looking like a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="teste1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188469_teste1.png" style="height: 323px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But I want it to look like this (using aggregations): &lt;/P&gt;&lt;P&gt;&lt;IMG alt="teste2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/188470_teste2.png" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have seen the JS Pivottable and others but the code is too much modified and return errors. I just one the core function of the pivot table and change only the CSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paint: function ( $element, layout ) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;var html = "&amp;lt;table&amp;gt;&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;", self = this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;morebutton = false,&lt;/P&gt;&lt;P&gt;hypercube = layout.qHyperCube,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;rowcount = hypercube.qDataPages[0].qMatrix.length,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;colcount = hypercube.qDimensionInfo.length + hypercube.qMeasureInfo.length;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="color: #ff6600;"&gt;hypercube.qMode = 'P';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//render titles&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hypercube.qDimensionInfo.forEach( function ( cell ) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;html += '&amp;lt;th&amp;gt;' + cell.qFallbackTitle + '&amp;lt;/th&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;} );&lt;/P&gt;&lt;P&gt;hypercube.qMeasureInfo.forEach( function ( cell ) {&lt;/P&gt;&lt;P&gt;html += '&amp;lt;th&amp;gt;' + cell.qFallbackTitle + '&amp;lt;/th&amp;gt;';&lt;/P&gt;&lt;P&gt;} );&lt;/P&gt;&lt;P&gt;html += "&amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;";&lt;/P&gt;&lt;P&gt;//render data&lt;/P&gt;&lt;P&gt;html += createRows( hypercube.qDataPages[0].qMatrix, hypercube.qDimensionInfo );&lt;/P&gt;&lt;P&gt;html += "&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;";&lt;/P&gt;&lt;P&gt;//add 'more...' button&lt;/P&gt;&lt;P&gt;if ( hypercube.qSize.qcy &amp;gt; rowcount ) {&lt;/P&gt;&lt;P&gt;html += "&amp;lt;button class='more'&amp;gt;Mais...&amp;lt;/button&amp;gt;";&lt;/P&gt;&lt;P&gt;morebutton = true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$element.html( html );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Felisberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>felisberto_joao</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Extension for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Extension-for-pivot-table/m-p/1456656#M794009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using enterprise edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m Trying to &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;create a extension&lt;/STRONG&gt;&lt;/SPAN&gt; to change the css layout of pivot table. The problem is that the table look like a straight in spite of looking like a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="teste1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188469_teste1.png" style="height: 323px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But I want it to look like this (using aggregations): &lt;/P&gt;&lt;P&gt;&lt;IMG alt="teste2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/188470_teste2.png" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have seen the JS Pivottable and others but the code is too much modified and return errors. I just one the core function of the pivot table and change only the CSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paint: function ( $element, layout ) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;var html = "&amp;lt;table&amp;gt;&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;", self = this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;morebutton = false,&lt;/P&gt;&lt;P&gt;hypercube = layout.qHyperCube,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;rowcount = hypercube.qDataPages[0].qMatrix.length,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;colcount = hypercube.qDimensionInfo.length + hypercube.qMeasureInfo.length;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="color: #ff6600;"&gt;hypercube.qMode = 'P';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//render titles&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hypercube.qDimensionInfo.forEach( function ( cell ) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;html += '&amp;lt;th&amp;gt;' + cell.qFallbackTitle + '&amp;lt;/th&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;} );&lt;/P&gt;&lt;P&gt;hypercube.qMeasureInfo.forEach( function ( cell ) {&lt;/P&gt;&lt;P&gt;html += '&amp;lt;th&amp;gt;' + cell.qFallbackTitle + '&amp;lt;/th&amp;gt;';&lt;/P&gt;&lt;P&gt;} );&lt;/P&gt;&lt;P&gt;html += "&amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;";&lt;/P&gt;&lt;P&gt;//render data&lt;/P&gt;&lt;P&gt;html += createRows( hypercube.qDataPages[0].qMatrix, hypercube.qDimensionInfo );&lt;/P&gt;&lt;P&gt;html += "&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;";&lt;/P&gt;&lt;P&gt;//add 'more...' button&lt;/P&gt;&lt;P&gt;if ( hypercube.qSize.qcy &amp;gt; rowcount ) {&lt;/P&gt;&lt;P&gt;html += "&amp;lt;button class='more'&amp;gt;Mais...&amp;lt;/button&amp;gt;";&lt;/P&gt;&lt;P&gt;morebutton = true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$element.html( html );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Felisberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extension-for-pivot-table/m-p/1456656#M794009</guid>
      <dc:creator>felisberto_joao</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

