<?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: tLoop using while condition need a list output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219113#M14052</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt; , no I have not tried this and will give it a go right now, thanks for the quick response!!&amp;nbsp; I do have one more question though in regards to the tHashInput; I will eventually have 2 of these "large" lists, and need to have a nested loop run on both (~300 on the outter tHashOutput and ~150 on the inner tHashOutput).&amp;nbsp; I wanted to just verify this is possible before I try to figure out how to do it.&amp;nbsp; Thanks again!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 15:19:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-25T15:19:28Z</dc:date>
    <item>
      <title>tLoop using while condition need a list output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219111#M14050</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I will try to word this as best as possible, but basically I have a tloop using the while condition stating "StartAt" &amp;lt; "Total". StartAt will begin = 0 and Total = 7453.&amp;nbsp; At the beginning of the loop I am running a tRest using the StartAt as a parameter in a rest call and getting dates in return (50 at a time) putting them into a tMap and then increment StartAt = StartAt + 50.&amp;nbsp; As you can see this will loop through many times and everything looks alright when I place a tLogRow in the loop, however, I am looking to use this list of dates outside of this loop.&amp;nbsp; I need to then get the 7453 dates and pull out only the unique rows &lt;EM&gt;hopefully&lt;/EM&gt; cutting this number to around 300.&amp;nbsp; Once I have this down to 300 I then need to do another loop using this list 1 at a time.&amp;nbsp; I hope I've made myself clear here, and I really hope someone will be able to help me out with this as I've been stuck on it for quite awhile.&amp;nbsp; For now, below/attached is where I'm at and any advice would be greatly appreciated!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tLoop --iterate--&amp;gt; tRest --Main--&amp;gt; tExtractJSON --Main--&amp;gt; tMap --Main--&amp;gt; tJava&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StartAt = 0&lt;/P&gt; 
&lt;P&gt;MaxResults = 50&lt;/P&gt; 
&lt;P&gt;Total = 7453&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;inside tLoop&lt;/P&gt; 
&lt;P&gt;condition --&amp;gt; ((Integer)globalMap.get("row19.StartAt") &amp;lt;= (Integer)globalMap.get("row19.Total"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;inside tJava&lt;/P&gt; 
&lt;P&gt;--&amp;gt;globalMap.put("row19.StartAt", (Integer)globalMap.get("row19.StartAt") + (Integer)globalMap.get("row19.MaxResults"));&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219111#M14050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop using while condition need a list output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219112#M14051</link>
      <description>&lt;P&gt;I *think* I understand your issue here. Have you tried using a tHashOutput with the "append" switch set to true? You would add this to the end of the initial tLoop flow. Then in another subjob afterwards, use a tHashInput to read the full dataset from the tHashOutput. You could then do any filtering, etc, on that complete set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see the documentation for the tHash components here (&lt;A href="https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/ZyJapHDibvg4pI_FFSSyWA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/ZyJapHDibvg4pI_FFSSyWA&lt;/A&gt;) and here (&lt;A href="https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/orW6wqQ6z3Yd2iygtoCMeg?section=technical-thashinput-scenario_speed" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/orW6wqQ6z3Yd2iygtoCMeg?section=technical-thashinput-scenario_speed&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 11:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219112#M14051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop using while condition need a list output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219113#M14052</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt; , no I have not tried this and will give it a go right now, thanks for the quick response!!&amp;nbsp; I do have one more question though in regards to the tHashInput; I will eventually have 2 of these "large" lists, and need to have a nested loop run on both (~300 on the outter tHashOutput and ~150 on the inner tHashOutput).&amp;nbsp; I wanted to just verify this is possible before I try to figure out how to do it.&amp;nbsp; Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219113#M14052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T15:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop using while condition need a list output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219114#M14053</link>
      <description>&lt;P&gt;I'm not sure I entirely understand, but I sense you are asking about using multiple tHashOutput and tHashInput components. This is entirely possible and I use this technique all the time&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219114#M14053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop using while condition need a list output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219115#M14054</link>
      <description>&lt;P&gt;This worked perfectly thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-using-while-condition-need-a-list-output/m-p/2219115#M14054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T13:00:47Z</dc:date>
    </item>
  </channel>
</rss>

