<?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 [resolved] StringHandling function in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368253#M131540</link>
    <description>Is there a way that I can use the StringHandling function from tMap in other place? 
&lt;BR /&gt;For example, 
&lt;BR /&gt;I've got this expression typed in tFileCopy, basic settings -&amp;gt; rename -&amp;gt; destination filename 
&lt;BR /&gt;StringHandling.LEFT(globalMap.get("FILE_NAME"),(StringHandling.LEN(globalMap.get("FILE_NAME"))-4))+"_"+TalendDate.getCurrentDate()+".jpg" 
&lt;BR /&gt;But it returned error sort like "LEN in StringHandling method not applicable". While the TalendDate function works here. 
&lt;BR /&gt;I used the similar string in tMap 
&lt;BR /&gt;StringHandling.LEFT(row1.FILE_NAME),(StringHandling.LEN(row1.FILE_NAME)-4))+"_"+TalendDate.getCurrentDate()+".jpg" and it works. 
&lt;BR /&gt;I wonder since I'm able to use TalendDate I could also use other functions. Could any tell me if I've got the wrong understanding or I put it in the wrong way? 
&lt;BR /&gt;Thanks!</description>
    <pubDate>Sat, 16 Nov 2024 12:46:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:46:31Z</dc:date>
    <item>
      <title>[resolved] StringHandling function in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368253#M131540</link>
      <description>Is there a way that I can use the StringHandling function from tMap in other place? 
&lt;BR /&gt;For example, 
&lt;BR /&gt;I've got this expression typed in tFileCopy, basic settings -&amp;gt; rename -&amp;gt; destination filename 
&lt;BR /&gt;StringHandling.LEFT(globalMap.get("FILE_NAME"),(StringHandling.LEN(globalMap.get("FILE_NAME"))-4))+"_"+TalendDate.getCurrentDate()+".jpg" 
&lt;BR /&gt;But it returned error sort like "LEN in StringHandling method not applicable". While the TalendDate function works here. 
&lt;BR /&gt;I used the similar string in tMap 
&lt;BR /&gt;StringHandling.LEFT(row1.FILE_NAME),(StringHandling.LEN(row1.FILE_NAME)-4))+"_"+TalendDate.getCurrentDate()+".jpg" and it works. 
&lt;BR /&gt;I wonder since I'm able to use TalendDate I could also use other functions. Could any tell me if I've got the wrong understanding or I put it in the wrong way? 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 16 Nov 2024 12:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368253#M131540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] StringHandling function in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368254#M131541</link>
      <description>You need to preface globalMap.get with the variable type in brackets. Also, getCurrentDate returns a Date not a String. So:
&lt;BR /&gt;StringHandling.LEFT((String)globalMap.get("FILE_NAME"),(StringHandling.LEN((String)globalMap.get("FILE_NAME"))-4))+"_"+TalendDate.getDate("yyyyMMdd")+".jpg"</description>
      <pubDate>Thu, 28 Jul 2011 03:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368254#M131541</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-07-28T03:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] StringHandling function in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368255#M131542</link>
      <description>THANKS!!!</description>
      <pubDate>Fri, 29 Jul 2011 00:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-StringHandling-function-in-tMap/m-p/2368255#M131542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-29T00:43:52Z</dc:date>
    </item>
  </channel>
</rss>

