Adding a Relationship Between the Object Definitions

Delectable Bonsai must relate an application to multiple evaluations. This involves adding a one-to-many relationship in the Distributor Application object.

  1. Begin editing the Distributor Application object.

  2. Go to the Relationships tab.

  3. Click Add (Add Button) and enter these details:

    FieldValue
    LabelApplication to Evaluations
    NameapplicationToEvaluations
    TypeOne to Many
    ObjectApplication Evaluation
  4. Click Save.

    This adds a relationship table to Distributor Application, which you can add to a separate tab in the definition’s layout.

    Add the applicationToEvaluations relationship to the Distributor Application object.

    The relationship also adds a field to Application Evaluation object definition.

    For the Application Evaluation object, the relationship appears in the Fields tab.

    Liferay also adds dedicated relationship REST endpoints to both object definitions for relating and disassociating entries using REST APIs.

    Liferay adds dedicated relationship REST endpoints to both object definitions.

Before you practice relating object entries, you must add the relationship to each object’s custom layout.

Next: Adding the Relationship to Custom Layouts

Relevant Concepts

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy