<?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 tFilterRow (Advanced mode/Java code) - Syntax issues !! in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Advanced-mode-Java-code-Syntax-issues/m-p/2329419#M98614</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I have syntax issues in a tFilterRow (Java code in advanced mode).&lt;BR /&gt;I'd like to add these 2 conditions (with a "OR") :&lt;BR /&gt;1. Filtering only rows that end with "01" (type: String). What is the syntax for RegEx ?&amp;nbsp;&lt;BR /&gt;OR (||)&lt;BR /&gt;2. Filtering the &lt;U&gt;first row&lt;/U&gt;&amp;nbsp;(but once again I don't know the syntax for that. Is there a "first" function ?)&lt;BR /&gt;Thanks in advance for your reply &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 09:02:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-13T09:02:56Z</dc:date>
    <item>
      <title>tFilterRow (Advanced mode/Java code) - Syntax issues !!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Advanced-mode-Java-code-Syntax-issues/m-p/2329419#M98614</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I have syntax issues in a tFilterRow (Java code in advanced mode).&lt;BR /&gt;I'd like to add these 2 conditions (with a "OR") :&lt;BR /&gt;1. Filtering only rows that end with "01" (type: String). What is the syntax for RegEx ?&amp;nbsp;&lt;BR /&gt;OR (||)&lt;BR /&gt;2. Filtering the &lt;U&gt;first row&lt;/U&gt;&amp;nbsp;(but once again I don't know the syntax for that. Is there a "first" function ?)&lt;BR /&gt;Thanks in advance for your reply &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Advanced-mode-Java-code-Syntax-issues/m-p/2329419#M98614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T09:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: tFilterRow (Advanced mode/Java code) - Syntax issues !!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Advanced-mode-Java-code-Syntax-issues/m-p/2329420#M98615</link>
      <description>Add a sequence id for each row, to do it: 
&lt;BR /&gt;add a new column called id in the output table on tMap, and set its expression as&amp;nbsp; 
&lt;BR /&gt;Numeric.sequence("s1",1,1) 
&lt;BR /&gt; 
&lt;BR /&gt;Then, you are able to filter the first row in the advanced model filed of &amp;nbsp;tFilterRow component, eg: 
&lt;BR /&gt;input_row.id==1||input_row.columnName.substring(input_row.columnName.length()-2).equals("01")</description>
      <pubDate>Thu, 14 Jan 2016 08:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Advanced-mode-Java-code-Syntax-issues/m-p/2329420#M98615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-14T08:03:51Z</dc:date>
    </item>
  </channel>
</rss>

