<?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: tFilterRow - Filter a field that contains values in the context in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253785#M37010</link>
    <description>Hello,
&lt;BR /&gt;If I understand your problem correctly, your context variable context.event can only contain "A", "B", "C", and "D". In that case you can just use&amp;nbsp;input_row.EVENT_NAME.equals(context.event) in your filter, and it should filter out all other values.
&lt;BR /&gt;If you want to check if your field EVENT_NAME contains only one of the allowed values, you can use :
&lt;BR /&gt;"ABCD".contains(input_row.EVENT_NAME) &amp;amp;&amp;amp; input_row.EVENT_NAME.length() == 1
&lt;BR /&gt;the second part ensures that your field is only one character, so that "AB" doesn't match for instance.</description>
    <pubDate>Thu, 05 Mar 2015 22:30:08 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-03-05T22:30:08Z</dc:date>
    <item>
      <title>tFilterRow - Filter a field that contains values in the context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253784#M37009</link>
      <description>Hello, I want to filter a string field "EVENT_NAME"&amp;nbsp;to the values in my context. My context.event is A, B, C and D.
&lt;BR /&gt;
&lt;FONT size="2"&gt;So in the tFilterRow Advanced mode, I want to&amp;nbsp;code something like this input_row.EVENT_NAME.equals(context.event). I mean input.row.EVENT_NAME.equals("A","B","C","D")&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;Is there a way to do it? Could you provide me the syntax to get this filter works.&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;Thanks in advance!&lt;/FONT&gt;</description>
      <pubDate>Thu, 05 Mar 2015 17:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253784#M37009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T17:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: tFilterRow - Filter a field that contains values in the context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253785#M37010</link>
      <description>Hello,
&lt;BR /&gt;If I understand your problem correctly, your context variable context.event can only contain "A", "B", "C", and "D". In that case you can just use&amp;nbsp;input_row.EVENT_NAME.equals(context.event) in your filter, and it should filter out all other values.
&lt;BR /&gt;If you want to check if your field EVENT_NAME contains only one of the allowed values, you can use :
&lt;BR /&gt;"ABCD".contains(input_row.EVENT_NAME) &amp;amp;&amp;amp; input_row.EVENT_NAME.length() == 1
&lt;BR /&gt;the second part ensures that your field is only one character, so that "AB" doesn't match for instance.</description>
      <pubDate>Thu, 05 Mar 2015 22:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253785#M37010</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-03-05T22:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: tFilterRow - Filter a field that contains values in the context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253786#M37011</link>
      <description>Hi,&lt;BR /&gt;The input_row.EVENT_NAME.equals(context.event) is what I want to do to get all the rows which have "A", "B", "C"&amp;nbsp;and "D". However I don't get any match. I get zero rows in my output. In my data has some "A", "B", so I should get some matched rows.&lt;BR /&gt;I don't know if I miss anything?&lt;BR /&gt;Thank you for your help!</description>
      <pubDate>Fri, 06 Mar 2015 17:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253786#M37011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: tFilterRow - Filter a field that contains values in the context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253787#M37012</link>
      <description>&lt;P&gt;Use &lt;STRONG&gt;tFilterRow &lt;/STRONG&gt;combined conditions &lt;STRONG&gt;Or&lt;/STRONG&gt; advanced condition:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;input_row.columnName.contains("&lt;STRONG&gt;A&lt;/STRONG&gt;")||&lt;/P&gt; 
&lt;P&gt;input_row.columnName.contains("&lt;STRONG&gt;B&lt;/STRONG&gt;")||&lt;/P&gt; 
&lt;P&gt;input_row.columnName.contains("&lt;STRONG&gt;C&lt;/STRONG&gt;")||&lt;/P&gt; 
&lt;P&gt;input_row.columnName.contains("&lt;STRONG&gt;D&lt;/STRONG&gt;")||&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Similar to:&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://community.talend.com/t5/Design-and-Development/Filter-Rows-by-Substring/m-p/74084" href="https://community.qlik.com/s/feed/0D73p000004kJH0CAM" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Filter-Rows-by-Substring/m-p/74084&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 22:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFilterRow-Filter-a-field-that-contains-values-in-the-context/m-p/2253787#M37012</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2019-04-23T22:32:48Z</dc:date>
    </item>
  </channel>
</rss>

