<?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: [resolved] tFlowToIterate - on each Row: lookup and Run if condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270557#M48429</link>
    <description>Hi
&lt;BR /&gt;I don't understand why you use a tFlowToIterate to iterate each row if you don't use a variable in the query of tMysqlInput? Can you show us the query of tMysqlInput? And there is a job design problem, tJava_14 should begin to work after tMyslqInput finishes, the job looks like:
&lt;BR /&gt;tSugarCRMInput--main--tFlowToIterate--iterate--tMysqlInput--main--tLogRow(or tJavaRow)-oncomponentok--tJava_14...other processing
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 28 Oct 2013 03:03:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-28T03:03:24Z</dc:date>
    <item>
      <title>[resolved] tFlowToIterate - on each Row: lookup and Run if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270556#M48428</link>
      <description>Hi, 
&lt;BR /&gt;i'm creating a job like this: 
&lt;BR /&gt;dbInput1--main--&amp;gt;tFlowToIterate--iterate--&amp;gt; 
&lt;BR /&gt;--&amp;gt;If there is a record--&amp;gt; 
&lt;BR /&gt; --&amp;gt;else --&amp;gt; 
&lt;BR /&gt;To test it i substituted dbOutputs with tLogRows. 
&lt;BR /&gt;There are no syntax errors, but what i receive in tLogRows are empty rows. 
&lt;BR /&gt;tFlowToIterate has the "Use the default (key, value) in global variables" option checked. 
&lt;BR /&gt;LS_frontiera_meetings is a tMysqlInput component that search if a key exist or not. 
&lt;BR /&gt;tJava_14 has this code: 
&lt;BR /&gt;int nb=((Integer)globalMap.get("tMysqlInput_8_NB_LINE")); 
&lt;BR /&gt;if(nb&amp;gt;0){ 
&lt;BR /&gt;globalMap.put("hasData", true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("hasData", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;System.out.println("rows are: "+nb); 
&lt;BR /&gt;tJava15 and tJava16 are empty, i used them just to be able to connect to tLogRows. 
&lt;BR /&gt;Why do you think i'm receiving empty rows instead of the SugarCRMInput flow? 
&lt;BR /&gt;Thanks in advance 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBZT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137767iB2B9C3314189F8E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBZT.png" alt="0683p000009MBZT.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sun, 27 Oct 2013 18:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270556#M48428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-27T18:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFlowToIterate - on each Row: lookup and Run if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270557#M48429</link>
      <description>Hi
&lt;BR /&gt;I don't understand why you use a tFlowToIterate to iterate each row if you don't use a variable in the query of tMysqlInput? Can you show us the query of tMysqlInput? And there is a job design problem, tJava_14 should begin to work after tMyslqInput finishes, the job looks like:
&lt;BR /&gt;tSugarCRMInput--main--tFlowToIterate--iterate--tMysqlInput--main--tLogRow(or tJavaRow)-oncomponentok--tJava_14...other processing
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 28 Oct 2013 03:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270557#M48429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-28T03:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFlowToIterate - on each Row: lookup and Run if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270558#M48430</link>
      <description>Hi Shong, 
&lt;BR /&gt;thank you. 
&lt;BR /&gt;I succeed: 
&lt;BR /&gt;I used a flow like this (see image) to produce a Do While Loop - and an If Else Statement based on a Query Select. 
&lt;BR /&gt;I had to import into a CRM named "LS" every new or updated meetings from a CRM named "SKY". 
&lt;BR /&gt;============ 
&lt;BR /&gt;tJava_2 
&lt;BR /&gt;============ 
&lt;BR /&gt;globalMap.put("tMysqlInput_5_NB_LINE", 0); 
&lt;BR /&gt;============ 
&lt;BR /&gt;tJava_1 
&lt;BR /&gt;============ 
&lt;BR /&gt;int nb=((Integer)globalMap.get("tMysqlInput_5_NB_LINE")); 
&lt;BR /&gt;if(nb&amp;gt;0){ 
&lt;BR /&gt;globalMap.put("hasData", true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("hasData", false); 
&lt;BR /&gt;============ 
&lt;BR /&gt;LS_MEETINGS_SEL 
&lt;BR /&gt;============ 
&lt;BR /&gt;"SELECT 
&lt;BR /&gt; `meetings`.`id` 
&lt;BR /&gt;FROM `meetings` 
&lt;BR /&gt;ORDER BY date_entered desc 
&lt;BR /&gt;LIMIT 1" 
&lt;BR /&gt;} 
&lt;BR /&gt;If anyone needs further explenations, just ask. 
&lt;BR /&gt;If anyone has any ideas how to improve this flow, feel free to reply. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBZY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154310i962B70CDB2AE4ED0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBZY.png" alt="0683p000009MBZY.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sun, 03 Nov 2013 18:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFlowToIterate-on-each-Row-lookup-and-Run-if-condition/m-p/2270558#M48430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-03T18:48:42Z</dc:date>
    </item>
  </channel>
</rss>

