<?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 If/Then in tMap with Long Value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331651#M100612</link>
    <description>I've got a long value coming over in a tFileDelimitedInput lookup defined as a long. I want to forward a null value to the output if the value is null. Currently the value defaults to 0 if the lookup doesn't exist. 
&lt;BR /&gt;I know I can use this expression for a string... 
&lt;BR /&gt;stringvalue == "value" ? "true_value" : "false_value" 
&lt;BR /&gt;But I'm getting an error on the long value. I tried... 
&lt;BR /&gt;longvalue == null ? null : longvalue 
&lt;BR /&gt;Thanks.</description>
    <pubDate>Sat, 16 Nov 2024 13:44:52 GMT</pubDate>
    <dc:creator>AndyBrown</dc:creator>
    <dc:date>2024-11-16T13:44:52Z</dc:date>
    <item>
      <title>If/Then in tMap with Long Value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331651#M100612</link>
      <description>I've got a long value coming over in a tFileDelimitedInput lookup defined as a long. I want to forward a null value to the output if the value is null. Currently the value defaults to 0 if the lookup doesn't exist. 
&lt;BR /&gt;I know I can use this expression for a string... 
&lt;BR /&gt;stringvalue == "value" ? "true_value" : "false_value" 
&lt;BR /&gt;But I'm getting an error on the long value. I tried... 
&lt;BR /&gt;longvalue == null ? null : longvalue 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331651#M100612</guid>
      <dc:creator>AndyBrown</dc:creator>
      <dc:date>2024-11-16T13:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: If/Then in tMap with Long Value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331652#M100613</link>
      <description>Helllo 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;But I'm getting an error on the long value. I tried...&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;if you uncheck the 'nullable' option on schema, this column is not object type, so you can't the following expression: 
&lt;BR /&gt;row1.colName==null?null:value1 
&lt;BR /&gt;What you could do is: 
&lt;BR /&gt;a)Check the 'nullable' option and use expression: row1.colName==null?null:value1. 
&lt;BR /&gt;b)Using the folllowing expression: 
&lt;BR /&gt;row1.colName==0?setAFixedValueReplace0:row1.colName 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 30 Sep 2009 02:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331652#M100613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-30T02:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: If/Then in tMap with Long Value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331653#M100614</link>
      <description>I guess the value coming over is "0" due to the condition you described on the input I had. Thanks for the assistance.</description>
      <pubDate>Wed, 30 Sep 2009 12:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331653#M100614</guid>
      <dc:creator>AndyBrown</dc:creator>
      <dc:date>2009-09-30T12:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: If/Then in tMap with Long Value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331654#M100615</link>
      <description>I'm trying to do something similar: 
&lt;BR /&gt;I am reading an int value in tFileInputXML. 
&lt;BR /&gt;If the XML field is not there, the value is null and I want tmap to pass the null value to the output (xls). 
&lt;BR /&gt;If it is not null, then I want to divide by 10 and output the results as a double. 
&lt;BR /&gt;Relational.ISNULL(row1.colName)?null 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(double)(row1.colName) / 10) 
&lt;BR /&gt;If I check the "Nullable" in the tFileInputXML, then I get a null pointer exception? 
&lt;BR /&gt;Same problem if I use row1.colName==null?null 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(double)(row1.colName) / 10)</description>
      <pubDate>Thu, 13 Jan 2011 00:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-Then-in-tMap-with-Long-Value/m-p/2331654#M100615</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-01-13T00:05:47Z</dc:date>
    </item>
  </channel>
</rss>

