cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issue

Former Member
0 Kudos

Hi All;

I want to do following mapping basically but I dont know which context function I should use.

it maybe the opposite of "useOneAsMany" or something else.


<order>
    <documentNo>123456</documentNo>
    <documentLine>10<documentLine>
</order>

To


<FieldList>
   <field name=&quot;documentNo&quot;>123456</field>
   <field name=&quot;documentLine&quot;>10</field>
</FieldList>

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

In your target structure, use function "dublicate subtree" an the node fiield.

Assign documentNo to the first, documentLine to the second

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Stefan ;

I will give you ten-points

Former Member
0 Kudos

Hi,

If u have only 2 of therecords,

<order>

<documentNo>123456</documentNo>

<documentLine>10<documentLine>

</order>

To

<FieldList>

<field name=&quot;documentNo&quot;>123456</field>

<field name=&quot;documentLine&quot;>10</field>

</FieldList>

Thtz fine, u can hard code the value and concatenate with the strings...

But say if u have lot many fields for every field u cannot map like that...

Duplicating the target is fine..... but if have dyanamic number of records in source vt then???

U need a small UDF to do so...

If u face any prblm in writing UDF let us know..

Babu