Apply an Entity Path of a Component to its Children

   MaestroThe UI design product.  |   Form BuilderPlatform Developer |  17.10 This feature was introduced in 17.10.

Some components, such as an address component, are made up of multiple components, which we call children components. Maestro allows you to apply the same entity path to all children components that make up such a component. For example, if an address component is dragged onto a form and an address entity is created, the street, suburb, state and postcode children components, which make up the parent component, can be associated with the address entity.

For an entity path to be applied to the children of a component when an entity is created, you must end the entity name with an underscore; for example, applicant_address_. This underscore at the end tells Maestro where it fits in the domain model configured for the form.

To apply a component's entity path to its children components:

  1. Open a form in the Maestro editor.
  2. Select a component that contains multiple children components.
  3. Create an entity with a trailing underscore, for example, applicant_address_.
  4. Select the component in the View pane and right-click on it.
  5. Select Apply Entity Path to Children from the dropdown menu.
    Apply entity path to children
  6. Click Accept to confirm the changes.
    Apply entity path to children confirm dialog
  7. Open the Model pane to verify the new entities have appeared in the domain model.

Next, learn how to map a component to an entity property.