<?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: What is Count(*) in Java Script in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/What-is-Count-in-Java-Script/m-p/2296611#M69259</link>
    <description>In tMap you can use a sequence to count rows one by one. The final result will be available with the last row. You may also, store the result in a global variable. For that, define a local variable inside the tMap, for exemple i with the expression "0;". The semi-column is important as it allows you to write something else after such as "globalMap.put("count", Numeric.sequence("x", 1);" (this should work but not too clean in my opinion). 
&lt;BR /&gt;However, using a tAggregateRow is probably a better approach in most cases.</description>
    <pubDate>Tue, 07 May 2019 22:28:17 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-05-07T22:28:17Z</dc:date>
    <item>
      <title>What is Count(*) in Java Script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/What-is-Count-in-Java-Script/m-p/2296610#M69258</link>
      <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a tMap Java Script Expression that would do the same thing as a COUNT(*) in SQL. This will be used in a Output Column in tMap Output Column Not a tJava Component.Need something similar to a ((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) you would use in a tJava Component. Not sure what the alternative it is in a tMap Expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 21:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/What-is-Count-in-Java-Script/m-p/2296610#M69258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T21:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is Count(*) in Java Script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/What-is-Count-in-Java-Script/m-p/2296611#M69259</link>
      <description>In tMap you can use a sequence to count rows one by one. The final result will be available with the last row. You may also, store the result in a global variable. For that, define a local variable inside the tMap, for exemple i with the expression "0;". The semi-column is important as it allows you to write something else after such as "globalMap.put("count", Numeric.sequence("x", 1);" (this should work but not too clean in my opinion). 
&lt;BR /&gt;However, using a tAggregateRow is probably a better approach in most cases.</description>
      <pubDate>Tue, 07 May 2019 22:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/What-is-Count-in-Java-Script/m-p/2296611#M69259</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-05-07T22:28:17Z</dc:date>
    </item>
  </channel>
</rss>

