on 03-17-2011 9:53 AM
Hi All,
I have a mapping issue. Please see below:
When Code is equal to 1 it has to take Name1 and Surname1 and place it in field <D> and <C>. The problem is it takes the blabla fields and puts them into my output structure. Somehow the order gets mixed.
Input Structure
<AdditionalInfo> (0-unbounded)
<Code>A</Code>
</AdditionalInfo>
<AdditionalInfo>
<Code>B</Code>
</AdditionalInfo>
<AdditionalInfo>
<Address>
<Name>Name1</Name>
<Surname>Surname1</Surname>
</Address>
<Code>1</Code>
</AdditionalInfo>
<AdditionalInfo>
<Address>
<Name>blabla</Name>
<Surname>blabla</Surname>
</Address>
<Code>2</Code>
</AdditionalInfo>
Output Structure
<Field>
<D>Name1</D>
<C>Surname1</C>
</Field>
Solution I tried:
Code - removeContext -
Constant=1 - equalS - if without else - <D>
Name (mapped to then of if case) - removeContext -
Can anyone help.
thanks.
Edited by: Chris027 on Mar 17, 2011 11:01 AM
Edited by: Chris027 on Mar 17, 2011 11:18 AM
Hi,
your logic seems correct...
it should be like if (code with context to super parent) equals constant(1) then (Name with context to super parent) to target field...
cross check once by using queue option to check what values are passed at runtime...
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using mapwithDefault function after the Name field.
Check the queue values in mapping at IfthenElse and removeContext 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 |
---|---|
91 | |
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.