on 08-23-2007 10:51 AM
Hi all,
i need to write UDF,logic is like this,if i dont get the value from source side then default vaule should be sended to target side.How to write the UDF for this logic.
Regards,
phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vasanth,
i mapped Like as u Said.
But When I gave the Value in the Source Field , the value is Coming to target.it is Ok
When i Didn't pass any value to the source Field menas it's not taking the value which i gave in the Constant Function. It is Blank value is coming in the target Field
Please Let me know
Regards
Phani
Hi,
Please Find the Mapping Screenshot Here
http://rapidshare.com/files/50750161/Mapping.JPG.html
Regards
Phani
Hi
Do not use exist to check this logic if you are providing the source structure with blank value in the structure. Exists only checks if a particular node is present or not..
If you have to map corresponding to blank value in source, then refer to the 2nd solution i.e: compare ur source with space using the text equals function and then process with the if else logic
Thanks
Sanjo
Hi,
Please See this Mapping And Suggest me What Fields Should i Replace With Whom
http://rapidshare.com/files/50757285/Mapping1.JPG.html
Regards
Phani
Message was edited by:
phani kumar
Hi Phani,
Tey this Mapping this worked
http://www.flickr.com/photos/11767150@N03/1213074336/
Regards
Santhosh
This was the test results,
1. When there is an input for the Name node
http://www.flickr.com/photos/11767150@N03/1212254079/
2. When there is no input for the name node the output was filled with the value specified in the constant. Inmy case it was empty.
http://www.flickr.com/photos/11767150@N03/1212269521/
I was not able to see the mapping in the link that u provided...
Regards
Santhosh
Hi,
You can simply use the IF -> EXISTS->THEN->ELSE->MAP WITH DEFAULT function
Regards,
Kumar.
P.S: Reward points if helpful!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phani,
You can proceed without writing UDF by using the standard functions which are available ie You can check for the existance of the node and value.If it doesnt exists then they u can use mapwithdefault function which is there in the standard functions to map the default value to the target side.
Regards,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are u sure u want a UDF. This can be done using standard functions also. Functions Such as if, constant etc.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi phani,
You don't need UDF for it...
You can either check whether the source tag exists using exists function under node functions and then implement an if else logic to pass either the original source tag or a constant value...
Else if you want mapping to occur when input is space, you can do a text equals and again implement an if else logic
Thanks
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.