Skip to content

Remove Records from Related List

Feature Description

Remove records from the Related List field

Parameter Settings

Configuration ItemDescription
Data TableThe data table type of the record
Main Table Record IDThe main table record ID of the related list
Related List FieldThe Related List field that stores list data
Related Table Record IDThe record ID or record ID array of the child table to be removed

Example

In the related list field of the data table form page, if we need a remove button that can remove selected records from the related list when clicked, we can add a button with an execution action of Remove Records from Related List. In the work task module shown in the figure below, "Participating Teams" is a related list field, and the related table of this field is "Team Information". Select records in the related list and click the remove button in the table toolbar to remove the selected records from the participating teams.

To configure the above remove button, you need to add a remove button in the form page toolbar of the "Participating Teams" field. Select "Remove Records from Related List" 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 related list type field that needs to be removed in the data table for the Related List Field of the configuration item, which is the "Participating Teams" field in this case. Enter the record ID of the current form for the Main Table Record ID of the configuration item, which can be obtained through an expression. Enter the ID of the record to be removed for the Related Table Record ID of the configuration item, which can be obtained through an expression. The configuration content of this case is as follows.