To map a non-repeating source element to a repeating target element,
drag elements between the Message Mapping editor Source
and Target panes. The first occurrence of the target element is set to the
value of the source element.
To map to an occurrence other than the
first, complete the following steps:
- If the target element is not shown in the Spreadsheet pane, right-click
its lowest ancestor row, then click Populate. Repeat
this action until the target element is shown.
- Right-click the target element and click Insert After or Insert
Before to select the location to insert the repeating target elements. The Insert After or Insert Before options
are disabled if there is nothing valid to be inserted at the selected location. Selecting either of these opens the Insert
Statement wizard.
- Select the element to insert from the list of valid items.
- Enter the number of instances to be added and click OK. The number of instances to be added must be less than or equal to the
maximum occurrence specified for the selected element.
The specified number of instances of the repeating target element
are added to the Spreadsheet pane. The inserted statements do not have a mapping
expression and any children are not displayed. Right-click each element, then
click Populate to display any child elements.
By repeating the Insert After and Insert
Before action, it is possible to insert more repeating elements
in the target than the maximum occurrence specifies. Verify that the number
of repeating elements is valid, and delete any unwanted entries.