Creating a Relationship Between Mobile Business Objects

Goal: Create a relationship between mobile business objects to associate related data and maintain data synchronization on the device.

Prerequisites

Complete Creating Database Mobile Business Objects.

Task

In this tutorial, you create a relationship between the customer and sales_order mobile business objects (MBO).

  1. In the Palette, click Relationship.

    palette_new_relationship
  2. Select the customer MBO and, keeping the mouse button pressed, drag the Relationship link to the sales_order MBO to establish the relationship link.

    The Relationship Creation wizard opens.

  3. Accept the General default settings. In the Mappings section, select the id attribute in the Source object pane and cust_id in the Target object pane, or drag id from the Source Object to cust_id in the Target Object.


    id_to_custid_mapping

    A line connects the two attributes.

  4. Click Finish.

    The mobile application diagram now shows the link from the customer MBO to the sales_order MBO.


    mbo_customer_sales_order1

  5. Select File > Save.