on 10-22-2007 4:10 PM
Hi
I need to build a logic in mapping as below.
When a string of length 20 comes I got to pick first 19. When it comes of 15 i got to pick all 15. Can we do thorugh standard node functions ?? or we got to write UDF for this ??
Thanks
Kumar
Hey
just write a simple UDF for this,are u dealing with only two types of field lengths(i.e 20 or 15) or you can get other lengths too?
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Id mapped it to Length then choose Greater function choose constant value 20 connect to the greater function. then result connect to If on top choose ID and add substring function choose (0--20). then below choose ID. then result connect to target field.
result should be. 20 or greater it will be display only 20 char. if value 15 also it will be 15 length filed value.
Try this
Regards
Ramidi
Have you tried the substring function?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.