<?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: tmap expression syntax in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228203#M19545</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;It is because you are sending a string called "null". It is not equal to actual null in Java. But if you are insisting that you would like to send null as String, please try the code in previous post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 08:11:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-07T08:11:55Z</dc:date>
    <item>
      <title>tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228192#M19534</link>
      <description>&lt;P&gt;i have tried below expression in tmap as per expectation i should get&amp;nbsp; " null " as output in tmap test editor ..but getting&amp;nbsp; "n" as output ...could you please clarify this...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend22.PNG" style="width: 855px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2g2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138844i4C2ECF155910E90A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2g2.png" alt="0683p000009M2g2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 07:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228192#M19534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T07:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228193#M19535</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPCdAAO"&gt;@lavan524&lt;/A&gt;&amp;nbsp;,that hole expression will return a single character ,let think this way you have null as string with that expression will return only n ,if you changed 1 to 3 it will return nul&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 07:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228193#M19535</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-07T07:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228194#M19536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Relational.ISNULL(row1.data) || row1.data.trim().equals("")?null:row1.data.substring(0,1).toLowerCase() &lt;/PRE&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 07:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228194#M19536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T07:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228195#M19537</link>
      <description>&lt;P&gt;i have tried this way but still getting same output&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tal12.PNG" style="width: 861px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2Xf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130877iF2512EF9DE058ECD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2Xf.png" alt="0683p000009M2Xf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 07:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228195#M19537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T07:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228196#M19538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please print the input and output side by side to a tLogrow and share it with us? We would like to see the input data you are passing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 07:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228196#M19538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228197#M19539</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPCdAAO"&gt;@lavan524&lt;/A&gt;&amp;nbsp;,do you understand my answer,if not for that column have null values as string which means "null" has took as for that column with your expression returns only one character for "null" data the first character is n,so thats why you see n&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228197#M19539</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-07T08:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228198#M19540</link>
      <description>&lt;P&gt;Actually i am trying&amp;nbsp; to test expression in tmap test editor ...as per expectation by default value should be null and as per expression out put should be&amp;nbsp; " null " but getting " n "&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Relational.ISNULL(row1.S_Name_Indexed__c) || row1.S_Name_Indexed__c.trim().equals("")?null:row1.S_Name_Indexed__c.substring(0,1).toLowerCase()&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228198#M19540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228199#M19541</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPCdAAO"&gt;@lavan524&lt;/A&gt;&amp;nbsp;,if you want null then change this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Relational.ISNULL(row1.S_Name_Indexed__c) || row1.S_Name_Indexed__c.trim().equals("")?null:row1.S_Name_Indexed__c.substring(0,4).toLowerCase()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228199#M19541</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-07T08:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228200#M19542</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp; has already explained it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You are trying to insert null as a string "null" or "Null" or "NULL". But as per java, if it has to consider a value as null, it should be empty like a black hole.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You cannot equate it with any value as string.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228200#M19542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T08:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228201#M19543</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPCdAAO"&gt;@lavan524&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or try this way where the code is checking whether you are sending input itself as "null".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.data) || row1.data.trim().equals("")|| row1.data.trim().toLowerCase().equals("null")?null:row1.data.substring(0,1).toLowerCase()&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But the caveat is that sending null as a string is a bad practice.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228201#M19543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T08:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228202#M19544</link>
      <description>&lt;P&gt;I just want to clarify one thing .. as per ternary expression&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Condition ? True : False&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relational.ISNULL(row1.S_Name_Indexed__c) || row1.S_Name_Indexed__c.trim().equals("")?null :row1.S_Name_Indexed__c.substring(0,1).toLowerCase()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in my case condition is true and i should get "null" as result but why i am getting&amp;nbsp; "n" as out put&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228202#M19544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T08:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228203#M19545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;It is because you are sending a string called "null". It is not equal to actual null in Java. But if you are insisting that you would like to send null as String, please try the code in previous post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-syntax/m-p/2228203#M19545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T08:11:55Z</dc:date>
    </item>
  </channel>
</rss>

