<?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: Return more than 60,000 lines in extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622769#M11282</link>
    <description>&lt;P&gt;I ended up using the code below&lt;/P&gt;&lt;P&gt;became functional&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;async function obterDados(){
				for (var d = 0; d &amp;lt; 3; d++) {
					var requestPage = [{
						qTop : 100 * d,
						qLeft : 0,
						qWidth : 1, 
						qHeight : 1000
					}];

					const dadosObtidos = await self.backendApi.getData(requestPage).then(function(dataPages) {
						return dataPages[0].qMatrix;
					})
					
					
					for (var e = 0; e &amp;lt; dadosObtidos.length; e++) {
						//console.log(dadosObtidos);
						var texto = "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + dadosObtidos[e][0].qText + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
						document.querySelector('#tabelanova').insertAdjacentHTML('beforeend',texto);
					}
				}
			}
			
			obterDados();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 17:58:36 GMT</pubDate>
    <dc:creator>Yoshidaqlik</dc:creator>
    <dc:date>2019-09-11T17:58:36Z</dc:date>
    <item>
      <title>Return more than 60,000 lines in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622298#M11270</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;please can someone help me with the data return&lt;/P&gt;&lt;P&gt;I can't get data from all rows for extension&lt;/P&gt;&lt;P&gt;I'm using the code below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for (var d = 0; d &amp;lt;= 600; d++) {
				var requestPage = [{
					qTop : d * 100,
					qLeft : 0,
					qWidth : 10, 
					qHeight : 100
				}];
				 self.backendApi.getData(requestPage).then(function(dataPages) {
					for (var e = 0; e &amp;lt;= dataPages[0].qMatrix.length; d++) {
						dados.push(dataPages[0].qMatrix[e][0].qText);
					}
				});
			}
			
			console.log(dados);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why the data doesn't appear when I use the console.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 19:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622298#M11270</guid>
      <dc:creator>Yoshidaqlik</dc:creator>
      <dc:date>2021-08-13T19:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Return more than 60,000 lines in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622300#M11271</link>
      <description>&lt;P&gt;It seem because the getData is asynchrouns fucntion&lt;/P&gt;&lt;P&gt;so the for loop is finishing to run, before all the requests (promises) are finished (resolved)&lt;BR /&gt;so when u&amp;nbsp; console.log the the data is not yet inside "dados"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;try to console.log&amp;nbsp; in the end of the&lt;BR /&gt;then(function{&lt;BR /&gt;....&lt;BR /&gt;console.log(dados);&lt;BR /&gt;}&lt;BR /&gt;to check it.&lt;BR /&gt;you will get few logs, but the last one should be full.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 19:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622300#M11271</guid>
      <dc:creator>oz_moyal</dc:creator>
      <dc:date>2019-09-10T19:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Return more than 60,000 lines in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622337#M11272</link>
      <description>&lt;P&gt;doing so it returns the first and last loop.&lt;/P&gt;&lt;P&gt;the rest gave as a result &lt;EM&gt;undefined&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to make synchronous or make some kind of execution queue?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622337#M11272</guid>
      <dc:creator>Yoshidaqlik</dc:creator>
      <dc:date>2019-09-10T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Return more than 60,000 lines in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622340#M11273</link>
      <description>&lt;P&gt;seem u have error in your second for loop:&lt;BR /&gt;&lt;BR /&gt;for (var e = 0; e &amp;lt;= dataPages[0].qMatrix.length; d++) {&lt;BR /&gt;dados.push(dataPages[0].qMatrix[e][0].qText);&lt;BR /&gt;}&lt;BR /&gt;the loop is on var&amp;nbsp; e, and u do d++,&amp;nbsp; &amp;nbsp;u should do e++&lt;BR /&gt;&lt;BR /&gt;u can push all the promises into an array&lt;BR /&gt;and then use promise.all (google it if u r not familiar with it)&lt;BR /&gt;and when it resolves, it means all the promises resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622340#M11273</guid>
      <dc:creator>oz_moyal</dc:creator>
      <dc:date>2019-09-10T21:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Return more than 60,000 lines in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622769#M11282</link>
      <description>&lt;P&gt;I ended up using the code below&lt;/P&gt;&lt;P&gt;became functional&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;async function obterDados(){
				for (var d = 0; d &amp;lt; 3; d++) {
					var requestPage = [{
						qTop : 100 * d,
						qLeft : 0,
						qWidth : 1, 
						qHeight : 1000
					}];

					const dadosObtidos = await self.backendApi.getData(requestPage).then(function(dataPages) {
						return dataPages[0].qMatrix;
					})
					
					
					for (var e = 0; e &amp;lt; dadosObtidos.length; e++) {
						//console.log(dadosObtidos);
						var texto = "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + dadosObtidos[e][0].qText + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
						document.querySelector('#tabelanova').insertAdjacentHTML('beforeend',texto);
					}
				}
			}
			
			obterDados();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 17:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Return-more-than-60-000-lines-in-extension/m-p/1622769#M11282</guid>
      <dc:creator>Yoshidaqlik</dc:creator>
      <dc:date>2019-09-11T17:58:36Z</dc:date>
    </item>
  </channel>
</rss>

