
Chapter 3 Working with an XML model
Modifying the mapping of an attribute
You can modify the default mapping created for an attribute. The Attribute Mappings property sheet can be used to fine tune the mapping between an attribute in the current element and columns or attributes in data source tables or classes.
In the Mapped To box, you can see the column or attribute expression. By default, columns or attributes used in this expression are prefixed by their tables or classes. You can customize the content of the Mapped To box by inserting comments manually. You can also click the Ellipsis button and use the SQL Editor to modify the default mapping syntax. To recover the default column expression click the
In the Sources page it is possible to select several columns or attributes and map them to the current attribute. To do so, you have to use the Add Sources tool to select columns or attributes from the list of columns or attributes belonging to the tables or classes mapped to the current element. When you add columns or attributes from the Sources page, and when the column or attribute expression has not been modified by the user, the content of the Mapped To box in the General page is updated.
To modify the mapping of an attribute:
1In the Mapping page, select the Attributes Mapping tab to display the corresponding page.
2Select an attribute in the list and click the Properties tool. The Attribute Mappings Properties appears.
3Click the Sources tab to display the corresponding page.
4Click the Add Sources tool to display a Selection dialog box.
5Select source columns or attributes and click OK. The columns or attributes appear in the Sources list.
6Click the General tab to display the corresponding page. The selected columns or attributes appear in the Mapped To box.
7Click OK.
XSM User's Guide | 175 |