Back to Nocobase

Sub-table

docs/docs/en/interface-builder/fields/specific/sub-table.md

2.0.561.5 KB
Original Source

Sub-table

Introduction

The sub-table is suitable for handling to-many relationship fields. It supports batch creation and association of new data in the target collection, or selecting and associating existing data.

Usage Instructions

Different types of fields in the sub-table display different field components. Large fields (such as Rich Text, JSON, Long Text) are edited through a pop-up modal.

Relationship fields in the sub-table.

Orders (One-to-Many) > Order Products (One-to-One) > Opportunity

The default component for a relationship field is the Dropdown (supports Dropdown/Data Picker).

Field Configuration Options

Allow selecting existing data (disabled by default)

Supports selecting and associating existing data.

Field Component

Field Component: Switch to other relationship field components, such as Dropdown, Data Picker, etc.

Allow unlinking existing data

Whether to allow unlinking existing data for the relationship field in the edit form.