cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate subtree for source message

Former Member
0 Kudos

Hi,

What do I do if I need to duplicate the source tag?

For example Left occurs 0 thru 4, however system will always pass two occurrences, say,

Left(0) = 100

Left(1) = 200

I need to map these to different fields in the target for example..

Rightfirst = 100

Rightsomeotherfield = 200

If I right click on the source tag, I cannot duplicate subtree to do the mapping. Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You will need to use an user-function, with the context of Left as input. In the user-function you can send the specific occurance of Left as output.

In the user-function, Left is an array.

Example:

result.addValue(Left[0]); // to send the 1st value

or

result.addValue(Left[1]); // to send the 2nd value

Then, assign the the output of the user-function to Rightfirst, or Rightsomeotherfield.

Regards,

Bill

Former Member
0 Kudos

Is there some way I can refer to a specific occurrance of the Left node in a graphical mapping without need for a user defined function? Thanks.

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

This you can do while testing, provided your Source Element occurence is 0..n or 1..n.

While design time, it is not required to duplicate the nodes, if you want to repeat the source node in the target strcuture for the different values..

Regards,

Moorthy