<?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: LPAD/RPAD in tMap expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315314#M85980</link>
    <description>Hi&lt;BR /&gt;&lt;PRE&gt;  public static String lpad(String s, int n, String replace) {&lt;BR /&gt;                while (s.length() &amp;lt; n) {&lt;BR /&gt;                        s = replace+s;&lt;BR /&gt;                }&lt;BR /&gt;                return s;&lt;BR /&gt;        }&lt;BR /&gt;            public static String rpad(String s, int n, String replace) {&lt;BR /&gt;                while (s.length() &amp;lt; n) {&lt;BR /&gt;                        s = s+replace;&lt;BR /&gt;                }&lt;BR /&gt;                return s;&lt;BR /&gt;        }&lt;/PRE&gt;&lt;BR /&gt;Type this into custom routine.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Thu, 09 Feb 2012 09:51:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-09T09:51:50Z</dc:date>
    <item>
      <title>LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315311#M85977</link>
      <description>Hi,&lt;BR /&gt;I want to reproduce the lpad and rpad functions of SQL in a tMap expresion but I can't find the correct way to do that.&lt;BR /&gt;Any help would be apreciated,&lt;BR /&gt;Regards,&lt;BR /&gt;Khor</description>
      <pubDate>Sat, 16 Nov 2024 12:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315311#M85977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315312#M85978</link>
      <description>Hi Khor
&lt;BR /&gt;You can try StringHandling.LEFT() and StringHandling.RIGHT().
&lt;BR /&gt;Or create routine and define custom method in TOS.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 09 Feb 2012 09:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315312#M85978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T09:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315313#M85979</link>
      <description>Hi pedro,
&lt;BR /&gt;with lpad, for example if the number of characters is higher than the length of the string, it will put spaces (that's what I'm using it for). Like in this example:
&lt;BR /&gt;lpad('ASD',9) -&amp;gt; 'ASD '
&lt;BR /&gt;Would this java functions do the same, or just throw me a exception because the string is not long enough?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Khor.</description>
      <pubDate>Thu, 09 Feb 2012 09:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315313#M85979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T09:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315314#M85980</link>
      <description>Hi&lt;BR /&gt;&lt;PRE&gt;  public static String lpad(String s, int n, String replace) {&lt;BR /&gt;                while (s.length() &amp;lt; n) {&lt;BR /&gt;                        s = replace+s;&lt;BR /&gt;                }&lt;BR /&gt;                return s;&lt;BR /&gt;        }&lt;BR /&gt;            public static String rpad(String s, int n, String replace) {&lt;BR /&gt;                while (s.length() &amp;lt; n) {&lt;BR /&gt;                        s = s+replace;&lt;BR /&gt;                }&lt;BR /&gt;                return s;&lt;BR /&gt;        }&lt;/PRE&gt;&lt;BR /&gt;Type this into custom routine.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 09 Feb 2012 09:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315314#M85980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315315#M85981</link>
      <description>Hi pedro,
&lt;BR /&gt;How to call this routine in tMap expression?
&lt;BR /&gt;Regards,
&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 09 Feb 2012 09:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315315#M85981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T09:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315316#M85982</link>
      <description>Hi Khor
&lt;BR /&gt;You can find it in Expression Builder.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 09 Feb 2012 10:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315316#M85982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T10:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315317#M85983</link>
      <description>Hi,&lt;BR /&gt;This is the first place where I lookd it for, but the routines are not there.&lt;BR /&gt;I have to do something to import the routines in the tMap?&lt;BR /&gt;Regards,&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 09 Feb 2012 10:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315317#M85983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T10:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315318#M85984</link>
      <description>Hi Khor 
&lt;BR /&gt;That means you didn't create routine correctly. 
&lt;BR /&gt;You can get more info about custom routine in document. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 09 Feb 2012 10:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315318#M85984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPAD/RPAD in tMap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315319#M85985</link>
      <description>Hi,&lt;BR /&gt;Thank for you help.&lt;BR /&gt;Regards,&lt;BR /&gt;Khor</description>
      <pubDate>Thu, 09 Feb 2012 10:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LPAD-RPAD-in-tMap-expression/m-p/2315319#M85985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-09T10:06:28Z</dc:date>
    </item>
  </channel>
</rss>

