Configure Merge Actions for Individual Relationships

Use the mApp Solution Action context menu in the Relationship Editor within a mApp Solution to configure separate merge actions for individual Relationships. You can also use the Relationship Properties window to configure merge actions for individual Relationships, as well as for Relationship properties.

The Relationship Properties window is available in the Relationship Editor (accessed from within the Object Manager in the mApp Editor).

To configure merge actions for individual Relationships:

  1. Add a Business Object to a mApp Solution using the Add Business Object to mApp Wizard.
    You can also add Relationships to a mApp Solution without also adding the Business Object (except for reference), but this is less common.
  2. In the Object Manager within the mApp Editor, click the Business Object from the Object tree, and then click the Edit Relationships task in the Structure area.

    Tip: You can also click the Relationship button Relationship Icon in the mApp Editor toolbar to open the Relationship Editor.

    The Relationship Editor opens, displaying the Relationships for the Business Object, with a mApp Action column to show which Relationships you selected to overwrite and which ones you chose not to overwrite (blank in the mApp Action column) in the Add Business Object to mApp Wizard.

  3. Configure separate merge actions for individual Relationships (using the mApp Action context menu):
    1. Click a Relationship, right-click in the mApp Action column, and then hover over mApp Action to open a context menu.
    2. Select a merge action from the context menu:
      • Make no changes to Relationship: Select this option to leave the existing definition in the target system unchanged (the mApp Solution definition is not imported into the target system when the mApp Solution is applied).
      • Import Relationship if not already there: Select this option to import the Relationship if it does not already exist in the target system. If it already exists, the Relationship will not be imported when the mApp Solution is applied.
      • Overwrite Relationship: Select this option to have the mApp Solution definition overwrite the existing definition in the target system.
      • Conditionally merge Relationship properties: This option is grayed out on the context menu because merging a Relationship requires selecting separate merge actions for individual Relationship property merge areas. This is done using the Relationships Properties window (see step 5).
      • Remove Relationship from target system: Select this option to have the Relationship removed from the target system.
      • Relationship is reference-only: Select this option to include the Relationship in the mApp Solution for informational purposes only (the definition is not imported into the target system when the mApp Solution is applied).

      The selected action shows in the mApp Solution status column (blank if you selected Make no changes to Relationship).

  4. Configure separate merge actions for individual Relationships (using the Relationship Properties window):
    1. Click a Relationship, and then click the Edit button.
    2. Click the mApps page.

      Relationship Properties mApp Solutions Page

    3. Define general mApp Solution properties for the Relationship:
      • Include in mApp Solution: Select this check box to include the Relationship in the mApp Solution. Clear this check box to leave the existing definition in the target system unchanged (the Relationship is not imported into the target system when the mApp Solution is applied).

        Note: This check box is automatically selected if you chose to overwrite some or all of the Relationships when you added the Business Object to the mApp Solution (using the Add Business Object to mApp Wizard) or if you selected anything besides Make no changes to Relationship in the mApp Action context menu.

      • References: Click this button to open the References window and view all of the other definitions being used by the Relationship.
    4. Define options (merge actions) for how the definition will be merged into a target system:

      Note: These options are only available if Include in mApp is selected.

      • Import to target system: Select this radio button to import the definition into a target system. Then, select a merge action based on whether or not the definition is already present in the target system:

        If already present: In the drop-down, select a merge action to define how the definition is imported if it already exists in a target system:

        • Overwrite: Select this option to have the mApp Solution definition overwrite the existing definition in the target system.
        • Don't Import: Select this option to leave the existing definition in the target system unchanged (the mApp Solution definition is not imported into the target system when the mApp Solution is applied).
        • Merge: Select this option to define separate merge actions for each individual area of a definition.

        If not present: In the drop-down, select a merge action to define whether the definition is imported if it does not currently exist in the target system:

        • Import: Select this option to import the mApp Solution definition into the target system if does not already exist.
        • Don't Import: Select this option to skip importing the mApp Solution definition into the target system if it does not already exist (the mApp Solution definition will not be added to the target system).
      • Remove from Target System: Select this radio button to remove the definition from a target system.
      • For Reference Only: Select this radio button to include the definition in the mApp Solution for informational purposes only (the definition is not imported into the target system when the mApp Solution is applied).
      • Import/Remove Based on Condition: Select this check box to import or remove the definition based on a condition. Then, click the Ellipses button Ellipses Button to open the mApp Conditions window and define mApp Solution conditions.

        Tip: You can also click the mApp Options button Add to mApp Solution Button on the mApp Editor toolbar to open the mApp Options window for a Relationship and define general mApp Solution properties and merge actions for the Relationship. The mApp Options button will show an indicator based on the merge action you select in the mApp Solution Options window or in the Relationship Editor for a particular Relationship (example: mApp Solution Options Button - Overwritefor Overwrite).

  5. Configure separate merge actions for individual Relationship property merge areas:
    1. In the Options area of the Relationship Properties window, select the Import to Target System check box.
    2. Select Merge as the merge action for the Relationship (from the If Already Present drop-down).

      Relationship Properties Merge Areas

    3. Define individual merge actions for each merge area:

      In the Merge Areas Grid: For each merge area, select a merge action in the Merge Action column drop-downs:

      • Overwrite: Select this option to have the merge area overwritten in the target system when the mApp Solution is applied.
      • Do Not Overwrite: Select this option to leave the merge area unchanged in the target system when the mApp Solution is applied.

        Tip: Click the Uncheck All button Uncheck All Button to set all merge areas to Do Not Overwrite. Click the Select All button Multiple Selection Question Button to set all merge areas to Overwrite.

      On the remaining pages of the properties window: Click the mApp button mApp Solution Merge Actions next to each of the merge areas to define merge actions for individual properties:

      1. Define merge actions for general Relationship properties.
      2. Define merge actions for Relationship link properties.
      3. Define merge actions for Relationship database options.
      4. Define merge actions for Relationship auditing properties.
      5. Define merge actions for Relationship advanced properties.
    4. Select OK.

      The Merge Area selections are reflected in the Relationship Editor.

  6. Prepare the mApp Solution for Distribution (File>Prepare mApp for distribution), or save the mApp Solution (File>Save mApp to Disk) to continue making other changes.