ApatarForge
Apatar.com  |  Log In   

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister 
  ProfileProfile     Log in to check your private messagesLog in to check your private messages    Log inLog in  

leading zero in source file

 
Post new topic   Reply to topic    Apatar Community Forums Forum Index -> Development
View previous topic :: View next topic  
Author Message
sveta



Joined: 08 Jul 2011
Posts: 1

PostPosted: Wed Oct 19, 2011 10:00 pm    Post subject: leading zero in source file Reply with quote

Hi.
I'm using CSV file as a source.
client edits this file in excel, and after save leading zero in one field is gone. I cannot prevent this editing, client wants leading zero back in output file.
would be easy to use Prefix, but my problem is:
proper value size is 6 digits: some of values in source file have proper size, like '100200', but some of the values have only 5 digits and need that leading zero. like: used to be '010020', after client's edit '10020', they want it back to '010020' in output.
what is the best way to do it?
Back to top
View user's profile Send private message
Sergei



Joined: 26 Jul 2007
Posts: 969

PostPosted: Tue Nov 01, 2011 12:34 pm    Post subject: Reply with quote

Hello,

You need to use Replace function with the field(s) you try to add a leading zero. Example how to do it uploaded here http://bit.ly/tcrr6t

Datamap example like this.

Edited .CSV file - Transform - Edited .CSV file

If you have other questions feel free to let us know.
_________________
Regards,
Sergei
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Apatar Community Forums Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group