<?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: Looping tRESTClient through pagination in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Looping-tRESTClient-through-pagination/m-p/2499531#M141667</link>
    <description>&lt;P&gt;Hello Kandu,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;At first glance like this, try replacing the tJava_5 with a tJavarow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Sun, 29 Dec 2024 18:17:02 GMT</pubDate>
    <dc:creator>Dave_Simo</dc:creator>
    <dc:date>2024-12-29T18:17:02Z</dc:date>
    <item>
      <title>Looping tRESTClient through pagination</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-tRESTClient-through-pagination/m-p/2499361#M141665</link>
      <description>&lt;P&gt;hi, im new at talend.&lt;BR /&gt;&lt;BR /&gt;i want to try looping data extraction via tRESTClient.&lt;BR /&gt;the condition are looping from page 1, until page that has no responses.&lt;BR /&gt;&lt;BR /&gt;i try like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kandu_0-1735214300950.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176063i65909450EC565F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kandu_0-1735214300950.png" alt="kandu_0-1735214300950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;my configuration on&lt;BR /&gt;tloop1 = loop type : while, condition : context.hasMoreData (it set true when there are responses present, default : TRUE)&lt;BR /&gt;&lt;BR /&gt;tjava5 =&amp;nbsp;&lt;BR /&gt;if (row6.ConsentStatus != null &amp;amp;&amp;amp; !row6.ConsentStatus.isEmpty()) {&lt;BR /&gt;context.currentPage += 1; // Increment page number&lt;BR /&gt;} else {&lt;BR /&gt;context.hasMoreData = false; // Stop the loop&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;idk why it always stop at 1st iteration, and&amp;nbsp;context.hasMoreData always change into false after i run the logic on tjava.&lt;BR /&gt;&lt;BR /&gt;can someone help me.&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 12:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-tRESTClient-through-pagination/m-p/2499361#M141665</guid>
      <dc:creator>kandu</dc:creator>
      <dc:date>2024-12-26T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Looping tRESTClient through pagination</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-tRESTClient-through-pagination/m-p/2499531#M141667</link>
      <description>&lt;P&gt;Hello Kandu,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;At first glance like this, try replacing the tJava_5 with a tJavarow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 18:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-tRESTClient-through-pagination/m-p/2499531#M141667</guid>
      <dc:creator>Dave_Simo</dc:creator>
      <dc:date>2024-12-29T18:17:02Z</dc:date>
    </item>
  </channel>
</rss>

