<?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: [resolved] Adding expressions to tMap component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297064#M69671</link>
    <description>Hello 
&lt;BR /&gt;try
&lt;BR /&gt;
&lt;PRE&gt;row1.Price1.add(row2.Price2)&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Fri, 14 Aug 2009 04:34:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-14T04:34:52Z</dc:date>
    <item>
      <title>[resolved] Adding expressions to tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297063#M69670</link>
      <description>Hello, I'm new with Talend an also Java, so I think my problem must be very easy to solve..
&lt;BR /&gt;I'm using a tMap component to Map two fields from two different files (Price1 and Price2), these fields are BigDecimal (they are Prices, I think this is correct).
&lt;BR /&gt;I need to generate an output file with all data from the first file and a new field Price3 with the sum of Price1 and Price2, but if I define a expression like Price1+Price2 to define Price3 field, it says me that the operator + cannot be used with BigDecimal data types. So, how can I define a expression to add two fields if they are BigDecimals?
&lt;BR /&gt;
&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 16 Nov 2024 13:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297063#M69670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Adding expressions to tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297064#M69671</link>
      <description>Hello 
&lt;BR /&gt;try
&lt;BR /&gt;
&lt;PRE&gt;row1.Price1.add(row2.Price2)&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 14 Aug 2009 04:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297064#M69671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-14T04:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Adding expressions to tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297065#M69672</link>
      <description>Hello Shong, thank yo for your response, but I have used it before and the result is this NullPointer exception:
&lt;BR /&gt;Exception in component tMap_2
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at java.math.BigDecimal.matchScale(Unknown Source)
&lt;BR /&gt; at java.math.BigDecimal.add(Unknown Source)
&lt;BR /&gt;
&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 14 Aug 2009 08:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297065#M69672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-14T08:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Adding expressions to tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297066#M69673</link>
      <description>Hello 
&lt;BR /&gt;You should filter null row on price2 column. eg:
&lt;BR /&gt;row2.Price2==null?row1.Price1:row1.Price1.add(row2.Price2)
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 14 Aug 2009 09:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297066#M69673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-14T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Adding expressions to tMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297067#M69674</link>
      <description>Hello Shong, now all is fine!!
&lt;BR /&gt;Thank you for your responses.
&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 14 Aug 2009 09:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Adding-expressions-to-tMap-component/m-p/2297067#M69674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-14T09:50:55Z</dc:date>
    </item>
  </channel>
</rss>

