Creating a Relationship Between Mobile Business Objects

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 step, you create a relationship between the customer and sales_order MBOs.
  1. Create a link between the two MBOs:
    1. In the Palette, click Relationship.
      When you hover over any part of the Mobile Application Diagram, the cursor changes to a relationship arrow. If the cursor does not change, click Relationship again.
      palette_new_relationship
    2. In the Mobile Application Diagram, drag the mouse from the customer MBO to the sales_order MBO to draw a relationship link.
  2. In the New Relationship wizard, define the relationship between the MBOs:
    1. In the General section, accept the default settings.
    2. In the Mappings section, drag the mouse to draw a line from the id attribute in the Source Mobile Business Object to the cust_id attribute in the Target Mobile Business Object.
      Alternatively, click each attribute in turn to draw the line.

    id_to_custid_mapping
  3. Click Finish to close the New Relationship wizard.
    In the Mobile Application Diagram, a connection arrow links the customer and sales_order MBOs.
    mbo_customer_sales_order1
  4. Select File > Save.