on 09-03-2009 3:02 AM
<?xml version="1.0" encoding="UTF-8"?>
<Movement actionCode = 06>
<PrQuantity>
<Quantity unitCode="KCK">1564.33</Quantity>
</PrQuantity>
<Movement actionCode = 06>
<PrQuantity>
<Quantity unitCode="KCK">1564.33</Quantity>
</PrQuantity>
<Movement actionCode = 01>
<PrQuantity>
<Quantity>1564.33</Quantity>
</PrQuantity>
<PrQuantity>
<Quantity unitCode="KCK">1984.38</Quantity>
</PrQuantity>
<Movement actionCode = 06>
<PrQuantity>
<Quantity>1564.33</Quantity>
</PrQuantity>
<PrQuantity>
<Quantity unitCode="KCK">1345.33</Quantity>
</PrQuantity>
<Movement actionCode = 02>
<PrQuantity>
<Quantity>1564.33</Quantity>
</PrQuantity>
<PrQuantity>
<Quantity unitCode="KCK">1564.33</Quantity>
</PrQuantity>
RootNode :
If Movement-actionCode == 01 or 02 Generate target node ( which I did and absoluately no problems with it)
There is a field mapping which needs your inputs. The field mapping is ...
If unitCode == KCK then send corresponding Quantity.
Catch here is, unitCode is a attribute with optional occurrence.
In the above fields, it has generated 2 target nodes based on the root condition (working fine)
But How do I set the field mapping.
It will generate following qty for 2 nodes as
1984.38
1564.33
Thanks.
Hi Nikhil,
If you do the condition at root level and if you map at field level, it should populate because only the true values will come into the target root node. Please change the context of field level to the target and see.
If the above doesnot work then put the same condition at the field level and then change the context and then give a try.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My mapping is .....
If "unitCode" equalS "KCK" and
Movement-actionCode == 01 or 02
Then
Send "Quantity"
All the Quantity, unitCode, actionCOde are set to Movement context.
This mapping works if unitCode is not an optional field.
But I cannot use mapWithDefaults to make this possible as context of unitCode is set to Movement and setting the context to PrQuantity makes mapWithDefaults work but changing context below movement gives un expected results.
If I can set the mapWithDefaults to work with the context at movement it will work fine.
Thanks.
Hi Nikhi,
Try to use if then conditon without else. Try changing the context with quantity. I am just wondering if you use mapwithdefault, what do you want to use the default value. If you know then it will work. If you dont know then it is back to square one where you need to check with functional user.
Regards,
---Satish
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.