Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMap Pad String with Leading 0

I have been wrestling with this all day.  StringHandling.LPAD(row2.SAP_ID, 6, "0")  tests without error in the Expression Builder however isn't inserting the leading 0's in my field.  Any suggestions?

 

Many thanks!

Labels (3)
15 Replies
manodwhb
Champion II
Champion II

@lli , you can do below way also.

 

here id column data type is string , 30 is length of string and 0 is the padding character.

StringHandling.LPAD(row3.id,30,"0")

 

 

Vijay_K_N
Contributor
Contributor

in talend 7.1 i didn't find lpad function in string handling category

manodwhb
Champion II
Champion II

@lli , you can find this in under Code>>Routines>>system>>StingHandling.

 

 

Vijay_K_N
Contributor
Contributor

i followed ur suggestions but when i open the string handling i got program window in that every string handling function is there ...so u mean i can use ryt ...so why in tmap they are not available ???

Anonymous
Not applicable
Author

It works Perfectly may i get Explanation of ("%1$9s",) this

Anonymous
Not applicable
Author

It works Perfectly may i get Explanation of ("%1$9s",) this