Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Block Settings: Data Scope English Docs #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions docs/en-US/handbook/ui/blocks/block-settings/data-scope.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,45 @@
# 设置数据范围
# Setting Data Scope

## 介绍
## Introduction

设置数据范围是指为数据区块定义默认筛选条件,用户可以根据不同的需求灵活调整区块的数据范围。
Setting the data scope involves defining default filter conditions for data blocks, allowing users to adjust data ranges based on different needs or views.

## 使用手册
## User Manual

![20240407180322](https://static-docs.nocobase.com/20240407180322.png)

筛选字段支持选择本表字段、关系表字段(最多三层关系)。
`Filter fields` support selecting fields from the current table and related tables (up to three levels deep).

![20240422113637](https://static-docs.nocobase.com/20240422113637.png)

### 操作符
### Operators

不同类型的字段支持不同的操作符,例如文本字段支持等于、不等于、包含等操作符,数字字段支持大于、小于等操作符,日期字段则支持在范围内、在特定日期之前等操作符。
Different types of fields support different operators. For example:

- Text fields support operators like `is`, `is empty`, and `contains`.
- Number fields support operators like `greater than` and `less than`.
- Date fields support operators like `within range` and `before a specific date`

![20240424154003](https://static-docs.nocobase.com/20240424154003.png)

### 静态值
### Static Values

示例:订单「状态」为「已发货」。
Static values are those that are fixed. For example:
- Order `Status` is `Shipped`

<video width="100%" height="440" controls>
<source src="https://static-docs.nocobase.com/20240415204206.mp4" type="video/mp4">
</video>

### 变量值
## Variable Values

示例:「发货日期」早于「昨天」。
Variable values can change dynamically based on conditions. For example:
- `Delivery Date` is before `Yesterday`

![20240422090134](https://static-docs.nocobase.com/20240422090134.png)

<video width="100%" height="440" controls>
<source src="https://static-docs.nocobase.com/20240415214709.mp4" type="video/mp4">
</video>

更多关于变量内容参考 [变量](/handbook/ui/variables)
For more information about variables, refer to [Variables](/handbook/ui/variables).
Loading