<?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] Row Count for tMap Output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347348#M114615</link>
    <description>&lt;P&gt;great solution. thanks&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 11:11:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-17T11:11:30Z</dc:date>
    <item>
      <title>[resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347342#M114609</link>
      <description>I must be missing something obvious. I need to make a processing decision based on whether or not I have rows in an output from a tMap, like exiting the job if there aren't any. I was looking for something like NB_LINE used by the file shapes but it would appear that information isn't available for tMap outputs.
&lt;BR /&gt;Can anyone point me in the right direction for determining the rowcount from tMap output?
&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 28 Mar 2013 22:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347342#M114609</guid>
      <dc:creator>bchaney</dc:creator>
      <dc:date>2013-03-28T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347343#M114610</link>
      <description>Hi, 
&lt;BR /&gt;If I understand you well, do you want to count the total number of records have been proceed? If so please refer to this forum: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoiRCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-R-Dipay-numb-f-w-pc/td-p/96601&lt;/A&gt;, I think it will be helpful for you. 
&lt;BR /&gt;If not, could you give us more info about your requirement? Elaborating your case with an example with input and expected output values will be appreciated. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 29 Mar 2013 02:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347343#M114610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-29T02:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347344#M114611</link>
      <description>Hi Sabrina,&lt;BR /&gt;I'm looking for the row count for just one of the outputs from the tMap. &lt;BR /&gt;So far, I haven't hit a requirement to know the total records the tMap produced.&lt;BR /&gt;Thank you&lt;BR /&gt;- Bryan</description>
      <pubDate>Fri, 29 Mar 2013 11:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347344#M114611</guid>
      <dc:creator>bchaney</dc:creator>
      <dc:date>2013-03-29T11:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347345#M114612</link>
      <description>Hi Bryan
&lt;BR /&gt;You can define counter on tJavaFlex after tMap, and use a runIf connector to fires next processing base on a condition. see my screenshot
&lt;BR /&gt;start code on tJavaFlex:
&lt;BR /&gt;
&lt;PRE&gt;int nb=0;&lt;/PRE&gt;
&lt;BR /&gt;main code on tJavaFlex:
&lt;BR /&gt;
&lt;PRE&gt;nb++;&lt;/PRE&gt;
&lt;BR /&gt;end code on tJavaFlex:
&lt;BR /&gt;
&lt;PRE&gt;globalMap.put("nb_line",nb);//put the total nb of lines to a global vriable for use later when needed.&lt;BR /&gt;if(nb==0){&lt;BR /&gt;globalMap.put("hasData",false);&lt;BR /&gt;}else {&lt;BR /&gt;globalMap.put("hasData",true);&lt;BR /&gt;}&lt;/PRE&gt;
&lt;BR /&gt;set the condition of runIf as below if you want to fire another process if the output has rows.
&lt;BR /&gt;(Boolean)globalMap.get("hasData")
&lt;BR /&gt;set the condition of runIf as below if you don't want to fire another process if the output has no rows.
&lt;BR /&gt;!(Boolean)globalMap.get("hasData")
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 29 Mar 2013 13:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347345#M114612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-29T13:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347346#M114613</link>
      <description>Thanks Shong! That looks like what I need. 
&lt;BR /&gt;Added that behavior into my solution &amp;amp; the job ends as it should.
&lt;BR /&gt;Bryan</description>
      <pubDate>Fri, 29 Mar 2013 13:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347346#M114613</guid>
      <dc:creator>bchaney</dc:creator>
      <dc:date>2013-03-29T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347347#M114614</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Thanks Shong! That looks like what I need. &lt;BR /&gt;Added that behavior into my solution &amp;amp; the job ends as it should.&lt;BR /&gt;Bryan&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Good news, thanks for your feedback! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 30 Mar 2013 08:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347347#M114614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-30T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Row Count for tMap Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347348#M114615</link>
      <description>&lt;P&gt;great solution. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Row-Count-for-tMap-Output/m-p/2347348#M114615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T11:11:30Z</dc:date>
    </item>
  </channel>
</rss>

