on 11-30-2008 1:59 PM
Hi!
Here is my problem:
I need to do this mapping:
<Header >(Occ. 1-n)
<Serial_Number>
<Item>(Occ. 1-n)
<ItemNumber>
<Date>
</Item>
</Header>
<Header > (Occ. 1-n)
<Item>(Occ. 1-n)
<Doc_Number>
<ItemNumber>
<Date>
</Item>
</Header>
I need to map Serial_Number to Doc_Number in each Item(Each Header has more than one item)
The problem is that the value pass only to the first Item node, the others stay empty.
inser the <Item>(Occ. 1-n) on the 1st and snd inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Map the following.
1) Header --- Header
2) Use useOneAsMany and pass the following three parameters given below..
Serial No
Item ------useOneAsMany ---- Doc_Number
ItemNumber
3) Item --- Item
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad you made it.
Make sure to test it with various messages to be stable for PROD.
Glad I could help.
Nimrod.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for that. it was not that clear from your post.
I think using the Change context and the function UseOneAsMany might work for you cause this is a quit an easy task after all.
right click on the <Serial_Number> in the source Headr in the mapping.
change context into Header level.
Now map it to the <Doc_Number> in a context change of <Item>.
This will result in the source Queue - all the Serial numbers under the headr with context for each header.
i nthe function UseOneAsMany map the <Serial_Number> from the top headr and try
to duplicate it usign the number of items in the source message.
map the resukt to the target contecxt (might work even without splitByValue)
make sure that <Serial_Number> is a mandatory field becaue in case on empty XML tag the mapping wuill fail.
Good luck again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use CopyValue from the Serial_Number for each Doc_Number.
This will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use Context change or splitByValue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.