Creating Relationships Between Mobile Business Objects

Use the New Relationship wizard to create relationships between two or more mobile business objects.

Prerequisites

At least two mobile business objects and at least one attribute must be defined for either mobile business object before you can create a relationship between them. You can also create relationships between MBOs through parameters.

Task
  1. Launch the New Relationship wizard from the Mobile Application Diagram by selecting the Relationship icon from the palette, then make a connection between two mobile business objects by clicking in the name or attribute section of one mobile business object (parent/source), and then dragging the line to the other (child/target).
    You cannot create relationships between local business objects and MBOs bound to a data source.
  2. Follow the wizard instructions to define a relationship between the mobile business objects. Include:
    • Relationship name – if necessary, change the default name to a unique, descriptive name.
    • Source object – read-only and automatically filled in. Enter the source object Attribute name, which identifies the name of the source of the relationship, and is independent of any MBO attribute.
    • Target object – select a target of the relationship from the drop-down list. Enter the target object Attribute name, which identifies the name of the target of the relationship, and is independent of any MBO attribute.
    • Comment – (Optional)
    • Relationship type – either:
      • One to many – the source for this relationship is one-to-many (default). For example, one manager manages multiple employees.

      • One to one – a one-to-one relationship between the target and the source. For example, a manager manages only one department.

      • Many to one – the source of this relationship is many-to-one. For example, many employees work in one department.

    • Bi-directional – indicates a two-way relationship. That is, changes can be propagated in either direction.

    • Composite – create, update and delete operations on a parent MBO automatically cascades changes to the child entity. For example, deleting the parent Customer MBO cascades directly to the child MBO Sales Order. This option is disabled for many-to-one relationships.
  3. Create the mappings from the source mobile business object to the target by selecting a source object attribute, parameter, or structured parameter and dragging it to the corresponding target to which you want to map. Structured parameter relationships are not true relationships, but allows mapping of structures. Unwired WorkSpace also supports attribute-to-parameter, parameter-to-attribute, and parameter-to-parameter mappings.
  4. Click OK when finished.
    Relationships are identified in the Mobile Application Diagram by a line connecting the related MBOs, with a different type of arrow for each type of relationship (one-to-one, one-to-many, or many-to-one).