| tnu@nic.fi 2005-12-29, 7:49 am |
| Hi,
I'm trying to create following map:
<PaymentTerms>
<invoiceDueDate>"invoiceduedate"</invoiceDueDate>
<cashdiscountdate>"cashdiscountdate"</cashdiscountdate>
<Cashdiscountamount>"cahsdiscountamount"</Cashdiscountamount>
</PaymentTerms>
===>
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"invoiceduedate"</DTM>
</PAT-LOOP>
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"cashdiscountdate"</DTM>
<MOA>"cashdiscountamount"</MOA>
</PAT-LOOP>
Problem is that the actual result is like this:
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"invoiceduedate"</DTM>
<MOA>"cashdiscountamount"</MOA> <== EXTRA MOA ELEMENT
</PAT-LOOP>
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"cashdiscountdate"</DTM>
<MOA>"cashdiscountamount"</MOA>
</PAT-LOOP>
How can I get rid of this extra MOA-element? MOA is not mandatory in
result schema.
I have tried to use Logical Existence, Loop, Value mapping... etc.
Is this kind of conditional mapping at all possible in Biztalk?
/Tero
|