Adding Associations Between Data Objects

Context

In this tutorial, the CUSTOMER_ID attribute of the Service Order data object is associated with the CUSTOMER_ID attribute of the Customer data object. The SERIAL_NO attribute of the Service Order data object is associated with the SERIAL_NO attribute of the Equipment data object:

The following procedure describes how to define the association between the Service Order data object and the Customer data object.

You have created the associations between the Service Order data object and the Customer data object and between the Service Order data object and the Equipment data object. You can now proceed to define the distribution logic. When you create a dependency between these data objects, you can use the association you have defined here as a basis.

The Key Mapping for Association table appears with the node attributes of the associated data object listed in the Associated Node Attributes column.

Procedure


  1. Locate and click the CUSTOMER (EQUIPMENT) node of the Service Order data object with the secondary mouse button and choose Change .

  2. Choose the Node Association tab.

  3. Choose Add Association .

    The Association Wizard starts.

  4. Follow the steps in the Association Wizard :

    1. Enter the association name.

      This is a three-character key identifying the association, for example CUS (EQU).

    2. Enter the description for the association (optional).

    3. Select the Customer data object (Equipment data object) as the data object with which you want to establish the association.

    4. Select the association type Complete , as your referring data object node, the CUSTOMER node of the Service Order data object, contains all the back-end key fields of the referred data object.

    5. Select the node attributes to be mapped, in this example the CUSTOMER_ID (SERIAL_NO) attribute to be mapped to the CUSTOMER_ID (SERIAL_NO) attribute of the associated data object.

    6. Select the Generate Sync Key button to have a synchronization key generated to be mapped to the synchronization key of the associated Customer data object (Equipment data object).

      The generated synchronization key attribute is added to the attributes of the CUSTOMER (EQUIPMENT) node of the Service Order data object. The generated attribute is named CUS_SYNCKEY_MMW (EQU_SYNCKEY_MMW).

    7. Leave all link fields and values empty, as these are not required in the tutorial.

    8. Complete the association and save your entries.