<?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 iterate (ForEach) over MysqlInput rows, and MysqlRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333811#M102556</link>
    <description>I'm trying to iterate over the input given by a MysqlInput component, but just can't get the foreach component working.
&lt;BR /&gt;The documentation just doesn't help me at all.
&lt;BR /&gt;The job looks like:
&lt;BR /&gt;tMysqlInput_1 -- iterate -- tForeach_1 -- iterate -- tMysqlRow_1 -- row1 -- tLogRow_1
&lt;BR /&gt;The tMysqlInput contains a simple query giving me 12 rows with 3 columns.
&lt;BR /&gt;Colums are defined as:
&lt;BR /&gt;| Key (string) | DateTime (Date) | Description (String). |
&lt;BR /&gt;I just have no idea what values I should enter at the tForeach_1 component and MysqlRow components to have them iterate over the rows, and do a subquery based on the DateTime field in the iterated row.
&lt;BR /&gt;I tried to add "((String)globalMap.get("tMysqlInput_1_QUERY"))" as the Value in the Values basic settings of the tForeach_1 component, but nothing seems to happen.
&lt;BR /&gt;Furthermore, how to do the subquery (where clause) with the input from the tForeach DateTime field?</description>
    <pubDate>Fri, 20 May 2016 12:51:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-20T12:51:56Z</dc:date>
    <item>
      <title>How to iterate (ForEach) over MysqlInput rows, and MysqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333811#M102556</link>
      <description>I'm trying to iterate over the input given by a MysqlInput component, but just can't get the foreach component working.
&lt;BR /&gt;The documentation just doesn't help me at all.
&lt;BR /&gt;The job looks like:
&lt;BR /&gt;tMysqlInput_1 -- iterate -- tForeach_1 -- iterate -- tMysqlRow_1 -- row1 -- tLogRow_1
&lt;BR /&gt;The tMysqlInput contains a simple query giving me 12 rows with 3 columns.
&lt;BR /&gt;Colums are defined as:
&lt;BR /&gt;| Key (string) | DateTime (Date) | Description (String). |
&lt;BR /&gt;I just have no idea what values I should enter at the tForeach_1 component and MysqlRow components to have them iterate over the rows, and do a subquery based on the DateTime field in the iterated row.
&lt;BR /&gt;I tried to add "((String)globalMap.get("tMysqlInput_1_QUERY"))" as the Value in the Values basic settings of the tForeach_1 component, but nothing seems to happen.
&lt;BR /&gt;Furthermore, how to do the subquery (where clause) with the input from the tForeach DateTime field?</description>
      <pubDate>Fri, 20 May 2016 12:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333811#M102556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-20T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate (ForEach) over MysqlInput rows, and MysqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333812#M102557</link>
      <description>Hi , 
&lt;BR /&gt;I'm not very clear on what you are trying to achieve. 
&lt;BR /&gt; 
&lt;I&gt;&lt;U&gt;I tried to add "((String)globalMap.get("tMysqlInput_1_QUERY"))" as the Value in the Values basic settings of the tForeach_1 component, but nothing seems to happen.&lt;BR /&gt;Furthermore, how to do the subquery (where clause) with the input from the tForeach DateTime field?&lt;/U&gt;&lt;/I&gt; 
&lt;BR /&gt;On the above lines - which globalMap variables you are trying to get? Where you have set those variables? 
&lt;BR /&gt;While doing iterations - you would need to set required globalMap variables and you can use those variables as parameters in your successive SQL subqueries.</description>
      <pubDate>Fri, 20 May 2016 13:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333812#M102557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-20T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate (ForEach) over MysqlInput rows, and MysqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333813#M102558</link>
      <description>As far as I know, the tMysqlInput component outputs the flow to the QUERY variable (the tMysqlInput_1_QUERY global var).&lt;BR /&gt;The iterate component tForEach should now iterate over the rows, but that doesn't happen.&lt;BR /&gt;I see that the query contains 12 rows. The tMysqlInpt component tells me '12 execs finished', but the Foreach output only reports 1 exec finished: I would expect 12 execs fininshed too!&lt;BR /&gt;In other words: I can't find the proper example/documentation how to iterate over a mysql query, and do a subquery on each row...</description>
      <pubDate>Tue, 07 Jun 2016 10:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-iterate-ForEach-over-MysqlInput-rows-and-MysqlRow/m-p/2333813#M102558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-07T10:39:49Z</dc:date>
    </item>
  </channel>
</rss>

