Displaying Related Records in a Relationship as a Tab

While navigating related records in a relationship you have to select the Relationship tab, expand the relationship tree and search for the relationship to add, modify, or delete the related records. In such a scenario, a separate tab for the relationship is very handy.

The enhanced new relationship tab allows you to:

  • Add, Modify, or Delete related records
  • Display the related records in a tabular format which can be edited when needed
  • Show relationship attributes within the grid table

Procedure

  1. To change the record UI rendering to show a relationship as a separate tab, define the following XML in $MQ_COMMON_DIR/enterprise_name/htmlprops/recordui-render.xml.

    The sample XML is as follows:

    <recordui>

    <catalog id="123456">

    <relationshipShowAsTab>

    <relationship>

    <name>AccountToAddress</name>

    <tabname>Tab For AccountToAddress</tabname>

    </relationship>

    </relationshipShowAsTab>

    </catalog>

    </recordui>

  2. Save the XML file.
    • The Relationship tab with the relationship tree.
    • The Relationship displayed as a separate tab.