Skip to main content

Tree Field Management

Overview

Tree fields are used to manage dimensional data with hierarchical tree relationships and support scenarios such as tree tables and tree filters. Core capabilities include:

  • Hierarchy maintenance: build tree structures through parent-child ID relationships
  • Version-based management: switch between different tree versions based on time ranges
  • Dynamic data association: dynamically update tree structures through linked Datasets

Create a Tree Field

On the Admin Center > Enterprise Configuration > Tree Field Management page, click Add Tree in the upper-right corner. A new tree field row is then added at the top of the page. There are two ways to rename the tree field:

Method 1: Double-click the name of the new tree field and edit it directly.

Method 2: Click Details on the right side of the new tree field, then click the edit button next to the name on the Tree Field Details page.

Version Management

Overview

Tree field version management is used for versioned control of hierarchical structure data. By recording tree structures from different periods, it supports structure change tracing, data consistency, and the needs of business iteration and system development.

Applicable Scenarios

Single version: suitable for stable structures that do not require historical traceability, such as administrative divisions, static architecture displays, and fixed classification systems.

Multiple versions: suitable for frequently changing structures, for example:

  • Organizational changes: preserve historical organization versions to support retrospective analysis of data such as labor costs.
  • Product category adjustments: record changes in category tree structures to assist sales comparison and customer service order lookup.

Procedure

  1. Click Add Version on the right side of Version Management.

  2. Enter the version name. For multi-version scenarios, the default name format is name + sequence number + creation timestamp, such as OrgStructureV1_20240101.

  3. Choose the version maintenance method for the tree field. Two methods are supported: Excel Import and Linked Dataset.

    Note

    In single-version mode, only one maintenance method can be selected, either Excel or Dataset. The two are mutually exclusive. In multi-version mode, each version can independently use a different method, such as version 1 with Excel and version 2 with a Dataset.

    • Linked Dataset: select a Dataset for which the current user has usage permission to generate the tree structure. Only local file, online document, and database Datasets are supported.
      For field matching, see Field Definitions.

  4. Configure the version validity period. A version takes effect only during the specified validity period and expires automatically after that. If there is only one version, it remains permanently valid.

    • Single version: use a wide time range.
    • Multiple versions: multiple versions need to be used together with a date filter. Non-overlapping validity periods must be configured; otherwise, version filtering becomes invalid and only the default version takes effect.
      For example, if the date filter is set to June 18, 2025, the system matches the version whose validity period includes 20250618, and uses the corresponding tree field for analysis. If no version matches, the default version is used.

Other Operations

  1. Search: when there are many versions, search by name to find the corresponding tree field version.
  2. Edit: click Edit to modify the version, including its name, maintenance method, and validity period.
  3. Delete: delete the version. Single-version and default-version entries cannot be deleted.
  4. Preview: after a tree field is uploaded successfully, click Preview to check whether the generated tree meets expectations.

  1. Download: download the generated tree structure information, including four columns: current-level ID, current-level name, parent ID, and sequence number within the current level.

  2. Select Default Version: choose the default version from the drop-down list. When the date filter does not match a version whose validity period includes the selected end date, the default version is used.

    Description

    This is required only in multi-version mode.

Linked Dataset Fields

  1. Click Add Dataset on the right side of Linked Dataset Fields, select the Dataset to link, and click OK.
  2. Select the linked field.
    The linked field in the selected Dataset must correspond one-to-one with Current-Level ID in the uploaded tree field template.
  3. Select the date field.
    The date field defines the effective period of each version and works with the date filter to determine the current applicable version. When multiple tree field versions exist in the system, a validity period must be configured; otherwise, version filtering will fail and the default version will always be used.
  4. Click Confirm to complete Dataset linking.

Use Tree Fields

Use the created tree field to generate a tree table or configure a tree filter. For details, see Tree Table and Tree Filter.

Template Specifications and Restrictions

Field Definitions

The template contains four columns: Current-Level ID, Current-Level Name, Parent ID, and Sequence Number Within the Current Level. The detailed requirements are as follows:

Note

Fields are matched one by one based on column names, and other columns are ignored. Do not modify the header names when uploading.

Template FieldRules
Current-Level IDRequired; primary key; unique; cannot be empty
Current-Level NameRequired; cannot be empty
Parent IDRequired; can be empty, but if it has a value, it must come from Current-Level ID
Sequence Number Within the Current LevelOptional but recommended. Used to define value order in the tree structure.
Natural numbers: 1, 2, 3, 4, n

  • If the sort column is empty, sorting defaults to Current-Level ID.
  • If the sort column has values, sorting follows the sort column; each level is maintained using 1, 2, 3, 4, 5.
  • Rows without sequence numbers are placed after rows with sequence numbers and sorted by ID.
  • Upload Restrictions

    1. File format: only .xlsx and .xls are supported.

    2. File size: no more than 5 MB.

    3. Data limits

      • Upload limit is 50,000 rows. Upload fails if the limit is exceeded.
      • Up to 10 hierarchy levels are supported.
    4. Format requirements

      • Only text format matching is supported. Numeric and date formats are not supported.
      • Upload fails if merged cells exist in the value area.
    5. Logical validation

      • Circular tree structures can be prohibited.
      • Parent ID must exist in Current-Level ID.
      • Names and sequence numbers must be unique within the same level.

    Tree Field Migration

    Migration ScenarioHandling Rule
    Dataset migrationIf the Dataset is linked to a tree field version, the tree field does not need to be migrated separately.
    Tree field migrationOnly configuration information is migrated. The linked Dataset must still be migrated manually before the tree field can be used normally. Re-linking is not required.
    Tree table migration in a Page
  • Same version: the tree table type is retained, and tree field migration is mandatory, but no data is displayed because the Dataset is not migrated.
  • Lower version: the Page reports an error because tree tables are not supported.