Skip to content

Tree Selection

Description

ItemContent
Control ClassControl Class
SortableSingle Selection: Yes
FilterableSingle Selection: Yes
Supported Filter TypesSingle Selection: Contains, Does Not Contain, Equal, Not Equal, Empty, Not Empty, In List, Not In List

Settings

SettingDescription
Allow emptySet whether the field is required
Multiple selectionWhen enabled, the tree selection will support multiple selection. Enabling/disabling multiple selection will change the field's storage type
Placeholder in form when not filledText information displayed in the input box when no information is entered in the field
Display styleSet the display style after selecting an option
Options: Rounded Solid ColorRounded WireframePlain TextRight Angle Solid ColorRight Angle WireframeSemi-transparent Rounded Solid ColorSemi-transparent Right Angle Solid Color
Use option dictionary to get option valuesWhether to use the data dictionary in application settings as options
Option dictionary categoryWhen using the data dictionary in application settings as options, the data dictionary category used for list selection data
Option valuesCan set the option values for this field
Supported operations: AddCopy from other fieldsAdd sub-optionsSet as non-selectableDelete option
Use automation to set candidate listSupport using automation to filter the set option values
Automation input parametersParameters passed to automation based on context when calling automation for candidate values

Note

  • Single selection and multiple selection have different storage types. Enabling/disabling multiple selection may cause data loss, so please operate with caution. For conversion rules, refer to

  • When adding option values, a random code will be automatically generated as the option ID. You must modify the option ID according to the usage scenario to facilitate subsequent calls.

  • Use automation to set candidate list:

    • The automation return value only supports the ID list Array<String> of option values.
    • The ID list returned by automation must be within the scope of the Identifier in the option values or data dictionary.
    • When the ID list returned by automation is null, all option values will be displayed.

Database Storage Format

Selection TypeField TypeDescription
Single Selectionvarchar(200)Variable-length string, maximum 200 characters
Multiple Selectiontext[]Array

Usage Examples

Basic Usage

Status Control

Use Option Dictionary to Get Option Values

For option value field configuration, refer to

Use Automation to Set Candidate List

Option definitions:

LevelOption ValueIdentifier
0Hunan Province1010
1Changsha City1011
1Chenzhou City1012
0Hubei Province1020
1Wuhan City1021
1Xiangyang City1022
0Guangdong Province2010
1Guangzhou City2011
1Shenzhen City2012

Return Only Parent Data

Return Only Child Data