<?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: Automatically retrieve all data rows in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723820#M2266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, Erik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I be correct in saying that the only way of plotting 3500 location points then would be to call the paint function four times - the first three plot 1000 points each and the fourth 500?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 16:37:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-31T16:37:45Z</dc:date>
    <item>
      <title>Automatically retrieve all data rows</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723818#M2264</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 currently putting together my first extension - a mapping extension that will draw a polyline from the latitude and longitude coordinates taken from a GPX file.&amp;nbsp;&amp;nbsp; I'm using the leaflet JS library (&lt;A href="http://leafletjs.com/" title="http://leafletjs.com/"&gt;http://leafletjs.com/&lt;/A&gt;) in order to do this.&amp;nbsp; I have hit a bit of a stumbling block due to the fact that the initial data fetch (qHeight) is limited to 1000 which will only plot part of the route - a 3 hour ride could result in up to 10800 points, for example.&amp;nbsp; I have this currently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialProperties : {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; version: 1.0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qHyperCubeDef : {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qDimensions : [],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qMeasures : [],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qInitialDataFetch : [{&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; qWidth : 2,&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; qHeight : 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values retrieved are then being added to a JavaScript array ready to plot using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var dimensions = layout.qHyperCube.qDimensionsInfo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qData = layout.qHyperCube.qDataPages[0].qMatrix;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var coords = [];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(qData, function(rownum, column){&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; coords.push(L.latLng(column[0].qText,column[1].qText));&lt;/P&gt;&lt;P&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A colleague has worked on an algorithm that will reduce the number of data points to be plotted (to speed up the visualisation by removing points when stopped at traffic lights, etc) once the selections are passed to the extension but, as before, I can't figure out how to get +1000 rows.&amp;nbsp; I notice that the SimpleTable example extension is using the backendApi.getData to get any additional 50 rows each time the more button is clicked so it certainly seems possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, would it be possible to automatically (without the user having to click a more button) retrieve all data points (latitude and longitude coordinates) to add to the JavaScript array ready for creating the polyline using the backendApi?&amp;nbsp; If so, any hints on how I could do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thanks in advance for any assistance - any input will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723818#M2264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T13:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically retrieve all data rows</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723819#M2265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;You can use the getData method to get more data. Check out &lt;A _jive_internal="true" href="https://community.qlik.com/message/601910#601910"&gt;this &lt;/A&gt;thread for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 10:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723819#M2265</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-10-30T10:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically retrieve all data rows</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723820#M2266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, Erik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I be correct in saying that the only way of plotting 3500 location points then would be to call the paint function four times - the first three plot 1000 points each and the fourth 500?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 16:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723820#M2266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-31T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically retrieve all data rows</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723821#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;The maximum number of &lt;STRONG&gt;cells&lt;/STRONG&gt; you can get in one go is 10.000 (se &lt;A _jive_internal="true" href="https://community.qlik.com/message/597881#597881"&gt;this thread&lt;/A&gt;) - note that the limit is on cells, not rows. If your qWidth is 2 you should be able to get all 3500 rows in one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't actually need to call the paint method again, but you need to call getData, which will run asynchronously and add the new values to your visualization in the callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723821#M2267</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-11-03T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Automatically retrieve all data rows</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723822#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another point to consider: if you are after the numeric value you probably should use qNum and not qText:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14150235506158408 jive_macro_code" jivemacro_uid="_14150235506158408" modifiedtitle="true"&gt;
&lt;P&gt;var coords = [];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(qData, function(rownum, column){&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; coords.push(L.latLng(column[0].qNum,column[1].qNum));&lt;/P&gt;
&lt;P&gt; });&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qText will be formatted for display: use it for labels etc. qNum is the numeric value, use for all kinds of calculation etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Automatically-retrieve-all-data-rows/m-p/723822#M2268</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-11-03T14:07:59Z</dc:date>
    </item>
  </channel>
</rss>

