on 08-25-2009 4:36 PM
Hi Experts,
I've a set of Name,Value pairs coming in the input.
Pairs(0..unbounded)
.......Name(required)
.......Value(required)
If Name=X, I've to map field ABC to corresponding Value pair.
If Name=Y,I've to map field PQR to corresponding Value pair and so on.
I tried with if-then function. Where in for the 'if' input I've the boolean output of Name and Constant(Ex:X) comparison.
It didn't work
Hi Vishal,
What error is coming up with if-else?
You can use fixValue standard function. But if you have to use this "Name/Value" pair in 2-3 fields, you can use the if-else ...
Hope this helps.
Regards,
Neetesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
But what do you enter in the value column in fixValues?
Consider the input:
<Pair>
........<Name>Vishal</Name>
........<Value>100</Value>
</Pair>
<Pair>
........<Name>Andy</Name>
........<Value>200</Value>
</Pair> and so on..
Requirement is:
If Name=Vishal, ABC(target field) should have corresponding Value(i.e 100 in this case)
If Name=Andyl, XYZ(target field) should have corresponding Value(i.e 200 in this case)
I did use fixValues, but always only ABC gets created properly. XYZ doesn't get created.
Vishal,
Is the structure given is for target or sender? Hope it is target. If target then Can you tell the source of Name ie., what are you mapping for Name?
You need to map the same to value and then after you compare with If. You should get your output as desired.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use "FixValues" standard function.
Regards
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.