Steps to create a key
- Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
- Click the Global tab displayed in the Mapping Graph Area. All tabs of the Global tab are displayed.
Click the Key Functions tab. A list of existing keys is displayed in the Key Functions pane (see Figure 541).
Figure 541: Key Functions Tab
- Click the Add Key ( ) button to activate the Key Name field.
- Enter the name of the new key in the Key Name field.
Enter the path of the source element (at the root node) to be matched, in the Key Match field. The path always starts with a '/'.
theInfo Here in the field, you need not to enter the complete Xpath. In path you need to enter only
andthe Root
For exampleand Record.
For example /Root/Record .
Enter the name of the field to be matched in the Key Use field for example EMPID.
theInfo The Key Match and
the Key Use fields are case-sensitive.
Click Save Key (
) button to save the key. This key is added to the list of existing keys in the Key Function tab. It is also displayed under Keys in the Parameters Panel. (see Figure 542).Figure 542: Key Added to Parameters Panel
If you shift focus to another node, or click any of the Mapping Rules, Textual Rules, Properties, XSL or Debugger tabs, without saving the key, an alert message is displayed (refer to Figure 522).
theInfo The alert message is also displayed when shifting focus between
andthe Global
tabsand Node
tabs.
Click No to save the key and shift the focus to the other object. If you click Yes, then the defined key is cleared and focus is shifted to the other object.
Info You can rearrange the keys by dragging it up or down in the list.
theYou can edit or delete a key from the Parameters Panel itself. For details, refer to
the Managing a Global Variable from Parameter Panel section.