Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Problem
A set of elements require complex mapping, part of which is the same for many of the elements.
Solution
Use a template to save common mapping expressions rather than retyping them for each element.
Discussion
Saving parts of business logic that are frequently reused for many elements as a template can significantly reduce the time required to complete a mapping project.
For example, the following business logic is used as part of the mapping for several elements in this project.
Image Modified
Rather than typing this out for each mapping, the common expression to be reused may be saved as a template.
Copy the common expression to be added, then go to the "Settings" tab of the mapping project and click "Add/Edit Templates".
Image Modified
Click "Add".
Image Modified
Provide a descriptive title for the template and then paste (or type) the common expression into the Template text box. Click "Add". Then click "Close".
Image Modified
To insert the common expression into the business logic for an element, choose "Enter Mapping Business Logic" from the "Mapping Method" drop-down menu, then click inside the business logic text box. Click the double arrow << to expand the "Templates" menu, then select the desired template from the list.
Image Modified
The common expression is then inserted into the business logic text box.
Image Modified
You may also insert the common expression by typing the # character and then selecting the desired template.
Image Modified
The business logic may then be adjusted to the individual element.
Image Modified