<?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: Sorting in Qlik Sense Table Extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128889#M1823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, your solution works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also read your blog post about it, great article.&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/dynamically-modify-a-qlik-sense-visualization/"&gt;https://extendingqlik.upper88.com/dynamically-modify-a-qlik-sense-visualization/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2018 10:04:21 GMT</pubDate>
    <dc:creator>organgrindingmo</dc:creator>
    <dc:date>2018-09-17T10:04:21Z</dc:date>
    <item>
      <title>Sorting in Qlik Sense Table Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128887#M1821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am busy building a Qlik Sense extension which is basically a table with some custom features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next feature that I need to implement is sorting. The table does sort when you use the properties panel in "Edit" mode, I would like to add this functionality to the table when the user clicks on the Header of the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some detail on the extension.&lt;/P&gt;&lt;P&gt;I am using the standard JS, HTML format, not the ng format.&lt;/P&gt;&lt;P&gt;I have a very basic InitialProperties object which does the initial data fetch. (as below)&lt;/P&gt;&lt;P&gt;Then I just loop through the Matrix of the DataPage that is returned to create an HTML table.&lt;/P&gt;&lt;P&gt;There is also a click handler on a button that fetches more data.&lt;/P&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qHyperCubeDef: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qDimensions: [],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qMeasures: [],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qInitialDataFetch: [{
&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; qWidth: 20,
&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; qHeight: 50
&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;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add a click handler on the headings and pass through the column index. So, I'm looking for a way to re-fetch the data and have it sorted by what is specified within the Properties panel for that Dimension or Measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that there is a qSorting property on the qHyperCube but I'm not sure how to set his property and if it would affect the data when I make the call to the backendApi.getData() function.&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>Fri, 14 Sep 2018 12:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128887#M1821</guid>
      <dc:creator>organgrindingmo</dc:creator>
      <dc:date>2018-09-14T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Qlik Sense Table Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128888#M1822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I once did this in an extension that you'll find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/erikwett/qsDynamicTable/blob/master/dynamictable.js" style="font-size: 10pt;" title="https://github.com/erikwett/qsDynamicTable/blob/master/dynamictable.js"&gt;https://github.com/erikwett/qsDynamicTable/blob/master/dynamictable.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is that it modifies the InternalSortOrder array dynamically, by calling applyPatches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/" title="https://extendingqlik.upper88.com/"&gt;https://extendingqlik.upper88.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128888#M1822</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-09-14T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Qlik Sense Table Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128889#M1823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, your solution works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also read your blog post about it, great article.&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/dynamically-modify-a-qlik-sense-visualization/"&gt;https://extendingqlik.upper88.com/dynamically-modify-a-qlik-sense-visualization/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 10:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sorting-in-Qlik-Sense-Table-Extension/m-p/128889#M1823</guid>
      <dc:creator>organgrindingmo</dc:creator>
      <dc:date>2018-09-17T10:04:21Z</dc:date>
    </item>
  </channel>
</rss>

