<?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] Help needed to evaluate Boolean values in Input using tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249705#M34164</link>
    <description>Wow! Thank you so much. It worked perfectly just the way I wanted it. Appreciate your help.</description>
    <pubDate>Thu, 27 Jan 2011 18:36:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-27T18:36:31Z</dc:date>
    <item>
      <title>[resolved] Help needed to evaluate Boolean values in Input using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249703#M34162</link>
      <description>Hi, 
&lt;BR /&gt;I am new to the Talend tool and currently engaged in a DataMigration project. 
&lt;BR /&gt;I have an input table with values in it. One of the columns is a BigDecimal field that contains Boolean Values (0 is FALSE, 1 is TRUE), however the column also contains NULL VALUES as no default is set. For my transformation, I am using tMap, and I wish to evaluate the value in this column as follows and based on the value, enter a String value to the column in my Output table: 
&lt;BR /&gt;For example: 
&lt;BR /&gt;--------------- 
&lt;BR /&gt;If row1.TestInd = 0 then put "Not Submitted" into my Output Column 
&lt;BR /&gt;If row1.TestInd = 1 then put "Submitted" into my Output Column 
&lt;BR /&gt;If row1.TestInd = null then Do nothing 
&lt;BR /&gt;Hence I created the following Expression in tMap Expression builder but it does not work. 
&lt;BR /&gt;row1.TestInd==new BigDecimal(0)?"Not Submitted": row1.TestInd==new BigDecimal(1)?"Submitted":null 
&lt;BR /&gt;It simply sets everything to NULL in the output column when I run the job. Your help is greatly appreciated. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Ibi</description>
      <pubDate>Sat, 16 Nov 2024 13:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249703#M34162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Help needed to evaluate Boolean values in Input using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249704#M34163</link>
      <description>row1.TestInd == null ? null : &lt;BR /&gt;row1.TestInd.compareTo(BigDecimal.ZERO) == 0 ? "Not Submitted" : &lt;BR /&gt;row1.TestInd.compareTo(BigDecimal.ONE) == 0 ? "Submitted" : &lt;BR /&gt;null</description>
      <pubDate>Thu, 27 Jan 2011 18:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249704#M34163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-27T18:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Help needed to evaluate Boolean values in Input using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249705#M34164</link>
      <description>Wow! Thank you so much. It worked perfectly just the way I wanted it. Appreciate your help.</description>
      <pubDate>Thu, 27 Jan 2011 18:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Help-needed-to-evaluate-Boolean-values-in-Input-using/m-p/2249705#M34164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-27T18:36:31Z</dc:date>
    </item>
  </channel>
</rss>

