<?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: Restrict Incoming records by writing multiple conditions in tmap Expression filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285941#M59563</link>
    <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LLvYAAW"&gt;@Sara&lt;/A&gt;, is your case solved?</description>
    <pubDate>Wed, 17 May 2017 22:56:45 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-05-17T22:56:45Z</dc:date>
    <item>
      <title>Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285937#M59559</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;My requirement is to load data from excel to oracle table which satisfies the condition written in tmap expression filter and I'm&amp;nbsp;storing the rejected records in one file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&amp;nbsp;In excel file which contains following records&lt;/P&gt;
&lt;P&gt;VendorName,Type,Payment&lt;/P&gt;
&lt;P&gt;John,Credits,10.23&lt;/P&gt;
&lt;P&gt;Richard,credits,10.23&lt;/P&gt;
&lt;P&gt;Maddy,credits,12.45&lt;/P&gt;
&lt;P&gt;ABCD,Debit,12.87&lt;/P&gt;
&lt;P&gt;cdef,debit,14.65&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output:&lt;/P&gt;
&lt;P&gt;vendorname(varchar),Type(varchar),Payment(bigdecimal)&lt;/P&gt;
&lt;P&gt;VendorName,Type,Payment&lt;/P&gt;
&lt;P&gt;John,Credits,10.23&lt;/P&gt;
&lt;P&gt;Richard,credits,10.23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rejected records are :&lt;/P&gt;
&lt;P&gt;Maddy,credits,12.45&lt;/P&gt;
&lt;P&gt;ABCD,Debit,12.87&lt;/P&gt;
&lt;P&gt;cdef,debit,14.65&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The condition in tmap expression filter:&lt;/P&gt;
&lt;P&gt;row1.Type.equals("Credits") &amp;amp;&amp;amp; row1.payment == BigDecimal.valueOf(10.23)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, its works fine for the single condition that is&amp;nbsp; row1.Type.equals("Credits") and All the records gets rejected for this condition row1.Type.equals("Credits") &amp;amp;&amp;amp; row1.payment == BigDecimal.valueOf(10.23).&lt;/P&gt;
&lt;P&gt;row1.Type.equals("Credits") &amp;amp;&amp;amp; row1.payment == BigDecimal.valueOf(10.23).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can anyone help me out to resolve this issues?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 14:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285937#M59559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285938#M59560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to compare using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;row1.Type.equalsIgnoreCase("Credits") &amp;amp;&amp;amp;
row1.payment.compareTo(BigDecimal.valueOf(10.23)) == 0&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="crayon-cn"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 14:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285938#M59560</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-17T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285939#M59561</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looks a bit like it could be down to logic formatting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you're using:&lt;/P&gt;&lt;PRE&gt;row1.Type.equals("Credits") &amp;amp;&amp;amp; row1.payment == BigDecimal.valueOf(10.23)&lt;/PRE&gt;&lt;P&gt;But what you really mean is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Type must equal credits AND payment must equal 10.23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, it will be reading the query as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Type equals credits and payment EQUALS 10.23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's worth separating the key conditions like so, and giving that a bash:&lt;/P&gt;&lt;PRE&gt;row1.Type.equals("Credits") &amp;amp;&amp;amp; (row1.payment == BigDecimal.valueOf(10.23))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 15:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285939#M59561</guid>
      <dc:creator>cjj</dc:creator>
      <dc:date>2017-05-17T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285940#M59562</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;is correct so long as your payment column is a BigDecimal&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 15:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285940#M59562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285941#M59563</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LLvYAAW"&gt;@Sara&lt;/A&gt;, is your case solved?</description>
      <pubDate>Wed, 17 May 2017 22:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285941#M59563</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-17T22:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285942#M59564</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&lt;/P&gt;
&lt;P&gt;The below code works fine.&lt;/P&gt;
&lt;PRE&gt;row1.Type.equalsIgnoreCase("Credits") &amp;amp;&amp;amp;
row1.payment.compareTo(BigDecimal.valueOf(10.23)) == 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a clarification to&amp;nbsp;restrict data for Integer,float and date syntax&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 06:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285942#M59564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T06:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285943#M59565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Date values I'm using below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.CREATION_DATE.after(TalendDate.parseDate("MM/dd/yyyy","05/17/2017"))&lt;/P&gt;&lt;P&gt;its working fine.&lt;/P&gt;&lt;P&gt;My question is how to specify some date, something like I should retrieve the record which is on 05/14/2017.&lt;/P&gt;&lt;P&gt;I don't want to mention "after and before " keyword I just want to specify exact date.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 07:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285943#M59565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T07:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285944#M59566</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;row1.CREATION_DATE.compareTo(TalendDate.parseDate("dd-MM-yyyy", "05/17/2017")) == 0</description>
      <pubDate>Thu, 18 May 2017 07:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285944#M59566</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-18T07:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Incoming records by writing multiple conditions in tmap Expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285945#M59567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working Fine...&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 08:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Restrict-Incoming-records-by-writing-multiple-conditions-in-tmap/m-p/2285945#M59567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T08:02:25Z</dc:date>
    </item>
  </channel>
</rss>

