Skip to content

Select Records and Add to Association List

Feature Description

Open the record selection page and add the user-selected records to the Association List field

Parameter Settings

Configuration ItemDescription
Data TableRecord's data table type
Main Table Record IDAssociation list's main table record ID
Association List FieldThe Association List field that stores list data
Search SettingsSearch settings for the record selection page

Example

In the association list field of the data table form page, if we need a selection button that opens the record selection page and adds the selected records to the association list, we can add a button with the execution action Select Records and Add to Association List. In the team task module shown below, "Participating Teams" is an association list field associated with the "Work Teams" table. Clicking the select button in the field toolbar will open the record selection page for the work team module, and the selected data will be added to the task team field.

To configure the above button, you need to add a button to the sub-table toolbar of the work team field:

  • Select Select Records and Add to Association List as the execution action in the configuration item
  • Select the current module in the Data Table configuration item; in this case, we select "Team Task"
  • Select the association list type field in the data table where records need to be selected and added; in this case, we select the "Work Team" field
  • Enter the record ID of the table where the association record field is located in the Main Table Record ID configuration item, which can be obtained through an expression; in this case, we select the current record ID

Note: Since this operation requires the Main Table Record ID, this button is generally not used when creating main table records