<?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: run if in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271548#M49098</link>
    <description>&lt;P&gt;Use a tFlowToIterate after the tLogRow. Then connect that to a tJava using an iterate link. After the tJava, use your RunIf. The RunIf&amp;nbsp;logic should be based on a globalMap value. This is because the tFlowToIterate component will convert your data row to globalMap values. The key to each column will be the row name feeding into the globalMap and the column name. So, if your column is a String and is called "MyValue" and your row is called "row3", your globalMap value will be accessed like below....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("row3.MyValue"))&lt;/PRE&gt;&lt;P&gt;Your previous method did not work as the RunIf fires after the component has finished. By adding the tFlowToIterate, it means the subsequent components both start and end with each iteration. This means your RunIf will be tested for every row.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Nov 2018 23:54:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-23T23:54:57Z</dc:date>
    <item>
      <title>run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271547#M49097</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i have this job&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1a4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135176iE4F76167227E0CDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1a4.png" alt="0683p000009M1a4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;and i have this result&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.PNG" style="width: 323px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1ba.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133640i3C85BA8E8C85C1A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1ba.png" alt="0683p000009M1ba.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and i want to send mail if he see "A" in the last column, but here he just takes the last line in the last column ( it's "B") and the answerof the run if is "B".&lt;/P&gt; 
&lt;P&gt;Thanks for your answer &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 19:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271547#M49097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-23T19:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271548#M49098</link>
      <description>&lt;P&gt;Use a tFlowToIterate after the tLogRow. Then connect that to a tJava using an iterate link. After the tJava, use your RunIf. The RunIf&amp;nbsp;logic should be based on a globalMap value. This is because the tFlowToIterate component will convert your data row to globalMap values. The key to each column will be the row name feeding into the globalMap and the column name. So, if your column is a String and is called "MyValue" and your row is called "row3", your globalMap value will be accessed like below....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("row3.MyValue"))&lt;/PRE&gt;&lt;P&gt;Your previous method did not work as the RunIf fires after the component has finished. By adding the tFlowToIterate, it means the subsequent components both start and end with each iteration. This means your RunIf will be tested for every row.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 23:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271548#M49098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-23T23:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271549#M49099</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp; we use that in tJava?&lt;/P&gt; 
&lt;PRE&gt;((String)globalMap.get("row3.MyValue"))&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 07:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271549#M49099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-24T07:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271550#M49100</link>
      <description>&lt;P&gt;No, the tJava should be left empty. The globalMap code I gave you simply shows you how to access the column value for your RunIf logic.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 13:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/run-if/m-p/2271550#M49100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-25T13:29:59Z</dc:date>
    </item>
  </channel>
</rss>

