on 08-12-2010 6:08 AM
Hi experts,
I have a scenario where in a UDF returns 3 different values(TRUE,FALSE,E).
Based on these 3 values i need to map accordingly.
My mapping is as follows:
UDF -> FixValues(A1=TRUE,A2=FALSE) -> If TRUE -> ABC else -> DEF.
How to handle the value E coming from UDF?
If UDF returns E -> should ignore it. (Please note, target field should not receive the anything)
Any pointer will be of greate help.
Regards,
Rajkamal
Hi RajKamal,
If I am correct in understanding your question, then, your requirement is as follows:
If TRUE -> ABC
If FALSE --> DEF
If E --> nothing should go to target.
In this case, for E, don't put any value, just keep it blank in fix value function.
It should work.
Please post if you still have any query, somebody from SDN will help you out.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why you want go for Fix values here?? it is not rquired,you can handle the all logic in UDF it self or using mapping functions,
paste your UDF code here,we will try to alter the code ..
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
PFB the UDF code:
if (lookup.equals(""))
{
return "E";
}
else
return (lookup);
The above code explicitly looks for values in one of the table, and returns as A1 or A2. If the table doesnot contain any value it returns E.
That is the reason am using FixValues as TRUE for A1 and FALSE for A2.
Regards,
Rajkamal
Hi
In UDF instead of E u can try with sUpPresSeD.
This will suppress the value u in target side..
Babu
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 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.