Variables

Introduction

Variables are a set of markers used to identify a certain value in the current context. They can be used in scenarios such as configuring block data scope, field default values, linkage rules, workflows, etc.

2024-09-25_20-08-38-2024-09-25-20-11-51

Currently Supported Variables

Current User

Represents the data of the currently logged-in user.

20240416154950

Current Role

Represents the role identifier (role name) of the currently logged-in user.

20240416155100

Current Form

The value of the current form, only used for form blocks. Usage scenarios include:

  • Linkage rules for current form
  • Form field default values (only valid when adding data)
  • Data scope settings for relationship fields
  • Field assignment configuration for submit operations

Linkage Rules for Current Form

20240416170732_rec_

Form Field Default Values (only valid when adding data)

20240416171129_rec_

Data Scope Settings for Relationship Fields

Used to handle linkage between relationships, for example:

20240416171743_rec_

Field Assignment Configuration for Submit Operations

20240416171215_rec_

Current Object

Currently only used for field configuration of sub-forms and sub-tables in form blocks, representing the value of each item:

  • Default values for sub-fields
  • Data scope for sub-relationship fields

Default Values for Sub-fields

20240416172933_rec_

Data Scope for Sub-relationship Fields

20240416173043_rec_

Current Record

A record refers to a row in a data table, with each row representing a record. There is a "Current Record" variable in linkage rules for row operations in display-type blocks.

Linkage Rules for Row Operations

20240416174813_rec_

Date Variables

Related variables include:

  • Current time
  • Yesterday
  • Today
  • Tomorrow
  • Last week
  • This week
  • Next week
  • Last month
  • This month
  • Next month
  • Last quarter
  • This quarter
  • Next quarter
  • Last year
  • This year
  • Next year
  • Last 7 days
  • Next 7 days
  • Last 30 days
  • Next 30 days
  • Last 90 days
  • Next 90 days

WARNING

Except for current time (Current time) which is a moment (string), other date variables are time periods (arrays). Currently, time periods can only be used in data scope, not in field default values.

Related usage scenarios include:

  • Date field condition settings for block data scope
  • Date field condition settings for relationship field data scope
  • Date field condition settings for operation linkage rules
  • Date field default value settings
Total visits  times     Total visitors  times     Total reading  times.   Powered by Tego Team