<?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: String Format rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205892#M6174</link>
    <description>Hi, 
&lt;BR /&gt;try with below one: 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==9?("0"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==8?("00"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==7?("000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==6?("0000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==5?("00000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==4?("000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==3?("0000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==2?("00000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==1?("000000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==0?("0000000000"+row1.Input):row1.Input&amp;nbsp; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;kumar.talend</description>
    <pubDate>Mon, 23 Mar 2015 05:23:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-23T05:23:59Z</dc:date>
    <item>
      <title>String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205888#M6170</link>
      <description>Hi Guys,&amp;nbsp;
&lt;BR /&gt;I have a small function to achieve i.e, I want add leading Zero's to the input which have Long as Datatype:
&lt;BR /&gt;Output:
&lt;BR /&gt;0000007865
&lt;BR /&gt;0002333342
&lt;BR /&gt;0022373461
&lt;BR /&gt;0000236327
&lt;BR /&gt;
&lt;BR /&gt;Input:
&lt;BR /&gt;7865
&lt;BR /&gt;2333342
&lt;BR /&gt;22373461
&lt;BR /&gt;236327</description>
      <pubDate>Thu, 19 Mar 2015 11:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205888#M6170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-19T11:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205889#M6171</link>
      <description>Try this:
&lt;BR /&gt;
&lt;PRE&gt;String.format("%10d",row1.field1)&amp;nbsp;&lt;/PRE&gt;
&lt;BR /&gt;Just remember to replace 'row1.field1' by your value.</description>
      <pubDate>Thu, 19 Mar 2015 12:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205889#M6171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-19T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205890#M6172</link>
      <description>@Tom4sz thanx for ur reply, i had already tried this one earlier and my output after applying string.format is some what like this : 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD19.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143903i098C323786161802/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD19.png" alt="0683p000009MD19.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Mar 2015 13:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205890#M6172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-19T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205891#M6173</link>
      <description>any one ??? :0</description>
      <pubDate>Mon, 23 Mar 2015 04:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205891#M6173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-23T04:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205892#M6174</link>
      <description>Hi, 
&lt;BR /&gt;try with below one: 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==9?("0"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==8?("00"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==7?("000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==6?("0000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==5?("00000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==4?("000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==3?("0000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==2?("00000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==1?("000000000"+row1.Input): 
&lt;BR /&gt;StringHandling.LEN(row1.Input)==0?("0000000000"+row1.Input):row1.Input&amp;nbsp; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;kumar.talend</description>
      <pubDate>Mon, 23 Mar 2015 05:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205892#M6174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-23T05:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205893#M6175</link>
      <description>Hi,
&lt;BR /&gt;We can achieve the same thing in different ways. I thought this solution could be very precise and simple.
&lt;BR /&gt;Use the fallowing expression:
&lt;BR /&gt;("0000000000" +row1.Test).substring(row1.Test.length())
&lt;BR /&gt;here row1.Test would be your input &amp;amp; based on the size u can increase/decrease the zeros.
&lt;BR /&gt;-Bhanu</description>
      <pubDate>Mon, 23 Mar 2015 08:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205893#M6175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-23T08:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205894#M6176</link>
      <description>&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;Kumar.talend &amp;amp; BhanuChandar For u r kind suggestions &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; but, i have already performed using ternary expression based on length, can u suggest me using String format.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;</description>
      <pubDate>Tue, 24 Mar 2015 04:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205894#M6176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T04:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205895#M6177</link>
      <description>Hi Kiran, 
&lt;BR /&gt;could you pls share us your ternary expression.. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;kumar.talned</description>
      <pubDate>Tue, 24 Mar 2015 04:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205895#M6177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T04:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205896#M6178</link>
      <description>Thanks bhanu chandar</description>
      <pubDate>Tue, 24 Mar 2015 05:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205896#M6178</guid>
      <dc:creator>yashwanth1</dc:creator>
      <dc:date>2015-03-24T05:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205897#M6179</link>
      <description>Earlier I tried this one: 
&lt;BR /&gt;StringHandling.LEN(Var.var1)==5?"00000"+Var.var1: 
&lt;BR /&gt;StringHandling.LEN(Var.var1)==6?"0000"+Var.var1: 
&lt;BR /&gt;StringHandling.LEN(Var.var1)==8?"00"+Var.var1: 
&lt;BR /&gt;Var.var1&amp;nbsp; 
&lt;BR /&gt;Output: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD72.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140965i81304B0B1A4062F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD72.png" alt="0683p000009MD72.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 24 Mar 2015 05:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205897#M6179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T05:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205898#M6180</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks bhanu chandar &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 24 Mar 2015 05:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205898#M6180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T05:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205899#M6181</link>
      <description>this one is simple which was suggested by bhanuchandar: Var.var1!=""?("0000000000"+Var.var1 ).substring(Var.var1.length()):"" &amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;Output: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCvX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138361i4DFF75C5DB790A9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCvX.png" alt="0683p000009MCvX.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 24 Mar 2015 05:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205899#M6181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T05:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: String Format rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205900#M6182</link>
      <description>Good solution bhanu.</description>
      <pubDate>Tue, 24 Mar 2015 06:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Format-rows/m-p/2205900#M6182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T06:05:50Z</dc:date>
    </item>
  </channel>
</rss>

