<?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 How to do a loop on a column value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231470#M21757</link>
    <description>Hello,
&lt;BR /&gt;I need to build an output table with a number of rows coming from a input column.
&lt;BR /&gt;Here my input table
&lt;BR /&gt;Category;Number
&lt;BR /&gt;***************
&lt;BR /&gt;Cat1;2
&lt;BR /&gt;Cat2;3
&lt;BR /&gt;I need to create in the output table 2 rows for the first, 3 for the next, etc..
&lt;BR /&gt;I've created a job to create the output rows, and I've tried to read my input table with a tfileinputdelimited and iterate on a tfor component giving $tfileinputdelimited as the limit and a trunjob to execute the first job in each loop.
&lt;BR /&gt;It doesn't work, but I think I'm wrong with my understanding of the tfor component.
&lt;BR /&gt;Thanks to lead me on the right way....
&lt;BR /&gt;Louis</description>
    <pubDate>Sat, 16 Nov 2024 14:31:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:31:35Z</dc:date>
    <item>
      <title>How to do a loop on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231470#M21757</link>
      <description>Hello,
&lt;BR /&gt;I need to build an output table with a number of rows coming from a input column.
&lt;BR /&gt;Here my input table
&lt;BR /&gt;Category;Number
&lt;BR /&gt;***************
&lt;BR /&gt;Cat1;2
&lt;BR /&gt;Cat2;3
&lt;BR /&gt;I need to create in the output table 2 rows for the first, 3 for the next, etc..
&lt;BR /&gt;I've created a job to create the output rows, and I've tried to read my input table with a tfileinputdelimited and iterate on a tfor component giving $tfileinputdelimited as the limit and a trunjob to execute the first job in each loop.
&lt;BR /&gt;It doesn't work, but I think I'm wrong with my understanding of the tfor component.
&lt;BR /&gt;Thanks to lead me on the right way....
&lt;BR /&gt;Louis</description>
      <pubDate>Sat, 16 Nov 2024 14:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231470#M21757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a loop on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231471#M21758</link>
      <description>Hi Louis 
&lt;BR /&gt;Can you upload a screenshot of your job? and what's the format do your expected output?
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 05 Nov 2007 07:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231471#M21758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-05T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a loop on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231472#M21759</link>
      <description>Hi, 
&lt;BR /&gt;You can use this pattern : 
&lt;BR /&gt;(A) tFileInputDelimited_1 -&amp;gt; (B) tFlowToIterate_1 -&amp;gt; (C) tRowGenerator_1 -&amp;gt; (D) tIterateToFlow_1 -&amp;gt; (E) tLogRow_1 
&lt;BR /&gt;with 
&lt;BR /&gt;(B) : check "use the default (key, value) for global variables" 
&lt;BR /&gt;(C) : 
&lt;BR /&gt;- Schema : 
&lt;BR /&gt;Column | Type | Function | Params 
&lt;BR /&gt;-------------------------------------------- 
&lt;BR /&gt;Category | String | ... | (String) globalMap.get("row1.Category") 
&lt;BR /&gt; 
&lt;BR /&gt;and 
&lt;BR /&gt;- Number of Rows for RowGenerator = (Integer) globalMap.get("row1.Number")</description>
      <pubDate>Thu, 07 Jan 2010 10:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-a-loop-on-a-column-value/m-p/2231472#M21759</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-01-07T10:04:36Z</dc:date>
    </item>
  </channel>
</rss>

