<?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: How to NULL a value in a tMap Expression if it's over a certain character length. I need to trim values that are to long so the values don't truncate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289946#M63279</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/47"&gt;@TRF&lt;/A&gt;&amp;nbsp; Solution Worked!&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 21:25:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-03T21:25:45Z</dc:date>
    <item>
      <title>How to NULL a value in a tMap Expression if it's over a certain character length. I need to trim values that are to long so the values don't truncate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289944#M63277</link>
      <description>&lt;P&gt;Hello Team of Talend Experts,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need the syntax for a tMap Expression using Java Script that will NULL a value if it's over a certain character length say 30 characters. Also leave the other values under 30 characters the same and it's just a 1 for 1 mapping for the rest of the values.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Some Java Script Syntax example would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 18:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289944#M63277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-02T18:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to NULL a value in a tMap Expression if it's over a certain character length. I need to trim values that are to long so the values don't truncate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289945#M63278</link>
      <description>On tMap right side use thé following expression for each concerned field:
&lt;BR /&gt;row1.fieldname == null ||
&lt;BR /&gt;row1.fieldname.length() &amp;gt; 30 ? null : row1.fieldname</description>
      <pubDate>Thu, 02 May 2019 19:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289945#M63278</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-05-02T19:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to NULL a value in a tMap Expression if it's over a certain character length. I need to trim values that are to long so the values don't truncate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289946#M63279</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/47"&gt;@TRF&lt;/A&gt;&amp;nbsp; Solution Worked!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 21:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-NULL-a-value-in-a-tMap-Expression-if-it-s-over-a-certain/m-p/2289946#M63279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T21:25:45Z</dc:date>
    </item>
  </channel>
</rss>

