To create a subform grid, users need two entities: a main entity where the grid will be implemented and a custom entity that contains the attributes for the grid. A foreign key linking the custom entity to the main entity must be created to establish a reference point between them.

To create subform grids and their associated attributes, follow these steps:

  1. Create Custom Entity
    • Access Entity Properties
      • From the Application Tree, navigate to Entities > Entity Designer (double-click to open). It will display the Entity Designer tab and expand the menu bar to show additional options.
      • From either the Entity tab or the menu bar, select the Add New Entity option. It will display a set of fields in which you can define the properties of the new entity.
    • In the fields of the Entity tab, users can define the properties of the newly created entity.
      • In the Name field, provide a name for the entity.
      • In the Title field, either specify a custom title for the entity or let the system automatically generate it based on the provided name.
      • In the Description field, provide a description for the entity, if needed.
  1. Create Custom Attributes
    • Access Attribute Properties
      • Once you have created the entity, select the Add New Attribute option from the Entity tab. It will direct you to the Attribute tab where you can define the properties of the new attribute.
    • In the fields of the Attribute tab, users can define the properties of the newly created attribute.
      • In the Name field, provide a name for the attribute.
      • In the Title field, either specify a custom title for the attribute or let the system automatically generate it based on the provided name.
      • Choose an attribute type— Data Field or Reference.
        • For the Data Field attribute, select the appropriate data type from the dropdown.
        • For the Reference attribute, select the appropriate reference from the System Reference window.

    • Custom Entity Attributes Example
  1. Create Foreign Key
    • Access Attribute Properties
      • Once you have created the custom entity, select the Add New Attribute option from the Entity tab. It will direct you to the Attribute tab where you can define the properties of the new attribute.
    • In the fields of the Attribute tab, users can define the properties of the newly created attribute.
      • In the Name field, provide a name for the foreign key.
      • In the Title field, either specify a custom title for the foreign key or let the system automatically generate it based on the provided name.
      • Choose the Reference option.
      • Click on the button. It will display the Select Reference window. From the entity section, select [AppName] – [MainEntity]. From the field section, select ID.
      • Selecting the entity will redirect to the Attribute tab, where the entity section will display [MainEntity] and the field section will display ID.
  1. Create & Design Custom Form
    • Access Form Properties
      • From the Application Tree, navigate to Forms > List of Forms (double-click to open). It will display the List of Forms tab and expand the menu bar to show additional options.
      • From the menu bar, select the New option. It will display the Form Properties window.
    • In the Form Properties window, users can create a new form for the application.
      • In the Name field, provide a name for the form.
      • In the Form Entity field, either specify a custom name for the form entity or let the system automatically generate it based on the provided form name.
      • From the Entity dropdown, select the custom entity.
      • Click OK and confirm both the prompt to start designing the form and the prompt to create a draft.
  1. Configure Grid Control Binding Properties
    • After creating and configuring the custom form, users can return to their main form and define the binding properties for the grid control.
    • Bind Grid Control to Attribute
      • A subform grid must be linked to the foreign key associated with the main entity.
    • Configure Binding Properties
      • To access the control properties, click on the ellipses () inside the field. In the displayed window, navigate to the Grid tab.
        • From the Form dropdown, select the custom form.
          • The custom form is the form associated with the custom entity. It will be called when the Add function is selected in the grid.
        • Choose the Master-Detail option.
        • From the Foreign Key dropdown, select the foreign key linked to the main entity.
        • Click on the Add Columns for Entity Fields button. It will automatically add all fields in the main and custom entity as columns in the grid.
        • Customize the columns of the grid as needed, adjusting properties such as their position order, width, and format.
        • Click on the OK button to save your changes and exit the window.
    • Configure Control Governance Properties
      • To access the control governance properties, click on the ellipses () inside the field. In the displayed window, navigate to the Grid tab.
        • To enable a functionality, users must link a corresponding form behavior.
          • To set up a form behavior, users only need to provide a name and a title.
          • When creating the form behaviors for the ‘New’ functionalities, users must select the Starter checkbox.
          • The ‘Delete’ functionality does not require a form behavior.
        • Click on the OK button to save your changes and exit the window.
    • Click Save Form and deploy the application to the web.