<?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 Using tmap to implement &amp;quot;not in&amp;quot; condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260825#M41814</link>
    <description>&lt;P&gt;I have a job where it extracts all the IDs from an API and these IDs are passed into another API to get further details. Now the requirement was to ignore some of the IDs from the above and the list was supposed to be dynamic.&lt;/P&gt;&lt;P&gt;Basically I needed something similar to "Not IN" condition of Sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt; I stored the Ids in context value in format &lt;STRONG&gt;ID1 | ID2 | ID3 |ID4&lt;/STRONG&gt; and added below condition in tMap which essentially does the job.&lt;/P&gt;&lt;P&gt;!((String)globalMap.get("id")).matches(context.EXCLUDED_ID)&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:05:19 GMT</pubDate>
    <dc:creator>Aami</dc:creator>
    <dc:date>2024-11-16T04:05:19Z</dc:date>
    <item>
      <title>Using tmap to implement "not in" condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260825#M41814</link>
      <description>&lt;P&gt;I have a job where it extracts all the IDs from an API and these IDs are passed into another API to get further details. Now the requirement was to ignore some of the IDs from the above and the list was supposed to be dynamic.&lt;/P&gt;&lt;P&gt;Basically I needed something similar to "Not IN" condition of Sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt; I stored the Ids in context value in format &lt;STRONG&gt;ID1 | ID2 | ID3 |ID4&lt;/STRONG&gt; and added below condition in tMap which essentially does the job.&lt;/P&gt;&lt;P&gt;!((String)globalMap.get("id")).matches(context.EXCLUDED_ID)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260825#M41814</guid>
      <dc:creator>Aami</dc:creator>
      <dc:date>2024-11-16T04:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using tmap to implement "not in" condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260826#M41815</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of matches make use of equals.&lt;/P&gt;&lt;P&gt;!((String)globalMap.get("id")).equals(context.EXCLUDED_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 11:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260826#M41815</guid>
      <dc:creator>Ganshyam</dc:creator>
      <dc:date>2019-11-19T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using tmap to implement "not in" condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260827#M41816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My excluded ID has a variable number of IDs and equals function can compare with only one ID. And this is the reason I'm using matches. It can compare any number of IDs stored as ID1&lt;STRONG&gt;|&lt;/STRONG&gt;ID2&lt;STRONG&gt;|&lt;/STRONG&gt;ID3&lt;STRONG&gt;|&lt;/STRONG&gt;ID4|... in context.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 06:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tmap-to-implement-quot-not-in-quot-condition/m-p/2260827#M41816</guid>
      <dc:creator>Aami</dc:creator>
      <dc:date>2019-11-20T06:31:42Z</dc:date>
    </item>
  </channel>
</rss>

