Skip to content

Open Create Sub-record Page

Feature Description

Open the record creation page. After successful creation, the record will be added as a child node of the parent record.

Parameter Settings

Configuration ItemDescription
Data TableThe data table type of the record
Parent Record IDThe record ID of the parent node. If empty, the child record will be added to the root node
Child Object FieldThe Child Object field that stores the parent-child relationship
Field Default ValueThe default value of fields in the opened form page
Hide FieldsHide specific fields on the form page

Example

In the child object field of the data table form page, if we need to open a dialog to create child object records, we can add a button with an execution action of Open Create Sub-record Page. As shown in the figure below, in the form page of the work task module, when we click the add button in the toolbar of the subtask field, a dialog for creating records will appear. After completing the information and clicking confirm, a subtask for the current task will be created.

To configure the above add button, you need to add an add button in the form page toolbar of the category-type field. Select Open Create Sub-record Page as the execution action for the configuration item. Select the current module for the Data Table of the configuration item, which is "Work Task" in this case.

Select the field in the data table where child object records need to be created for the Child Object Field of the configuration item, which is the "Subtask" field in this case. Enter the parent record ID of the child record to be created for the Parent Record ID of the configuration item, which can be obtained through an expression. Set the default value of the fields for the record created this time for the Field Default Value of the configuration item. Set the fields that we want to hide in the create data page opened through the current control for the Hide Fields of the configuration item. The configuration content of this case is as follows.