on 10-13-2009 4:43 PM
Hi,
How to do mapping for following:
If input element = A then send output as NT or
element = B then send output message as ST or
element = C then send output message as CT
Thanks in advance.
Hi,
Use Fixed Values Function from Standard Function
Input field-Fixed Values--Target Field
double click on Fixed values and define your rules for sourece value and target value
REgards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but I have to check input xml field values and need to update output element accordingly.
If you are looking at one input that you want to compare against a list of values, I agree that the FixValues function will do the trick. It is like a "CASE" statement or "SWITCH" in other programming languages. It also provides a default value in case no match is made.
Your example looks like
If input element = A then send output as NT or
element = B then send output message as ST or
element = C then send output message as CT
which implies you are testing the same input element against a list of values A, B, C and then outputing corresponding matched value of NT, ST, or CT.
Hi Anitha,
You are saying your field names are A, B, and C and at a time any one of them will come and based on that you nee to map NT, ST or CT to output field?
Then use the node function exists and check which field is there then you can use if then else
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use if then else function in Grapphical mapping its very easy.
or write simple udf
pass element as argument
If(Arg1=="a")
{ return NT;
}
if(Arg1="b")
{
return ST;
}
else
retrun CT;
Cheers,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.