Copy/Paste Mapping

This is an additional feature of mapping elements. You can copy the mapping associated with a target element and paste it on other target elements. 

Steps to copy the mapping of a target element

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes. Additionally, a source and target element should be mapped.
  2. Right-click the target element whose mapping you want to copy and select the Copy Mapping option. This copies the mapping of the selected target element.


Steps to paste the mapping on a target element

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes. Additionally, the mapping of a target element should be copied.
  2. Right-click the target element on which you want to paste the mapping and select the Paste Mapping option.

    The Paste Mapping Options screen is displayed with a list of Paste options.

    Paste Mapping Options

  3. This screen displays a list of options that can be pasted with the mapping. It includes the For Each and Comments properties and local variables.

    The Paste Mapping option is always enabled. The other options are enabled only if they have been defined for the copied element.

  4. Select the checkbox(s) of options you want to paste with the mapping, and click OK. The mapping with the selected options is pasted on the target element.
     

If local variables are pasted for a target element, they are not overwritten, but are added to the existing local variables of that target element.

You can also copy a mapping instance and paste it onto another instance. This is possible only if the schemas are same in both the mapping instances.

Import Mapping

If you want to map elements in a pattern that is similar to an existing mapping, you can import the existing mapping.

Steps to import an existing mapping to a new mapping

 

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.



    Elements of Source and Target Schema
  2. Click Actions menu and select Import Mapping (see Figure 436).

     
    Select Import Mapping Option

    The Import Mapping Dialog screen is displayed.



    Import Mapping Dialog

  3. Select the mapping you want to import and click Load. This imports the mapping of the selected schemas to the new schemas.


Mapping Imported