- 概述
- 应用程序事件
- 流程图生成器
- 标注
- 复杂场景
- 凭据
- Data Service
- 表单
- FTP
- IPC
- Automation Ops 管道
- 暂留
- 系统
- 发行说明
- 项目兼容性
- 受支持的字符编码
- “正则表达式构建器”向导
- 添加数据列
- 添加数据行
- 添加日志字段
- 加减日期
- 添加事务项目
- 添加队列项目
- 将项目附加至集合
- 将项目附加至列表
- 附加行
- 提示音
- 中断/退出循环
- 浏览文件
- 浏览文件夹
- 构建集合
- 构建数据表
- 批量添加队列项目
- 更改文本大小写
- 更改类型
- 检查 False
- 检查 True
- 清除数据表
- 从集合到数据表
- 注释
- 压缩文件/Zip 文件
- 复制文件
- 复制文件夹
- 合并文本
- 注释掉/禁用的活动
- 继续/跳过当前
- 创建文件
- 创建文件夹
- 创建列表
- 自定义输入
- 删除
- 删除文件
- 删除文件夹
- 删除存储文件
- 删除队列项目
- 禁用本地触发器
- Do While 循环
- 从 URL 下载文件
- 下载存储文件
- 启用本地触发器
- 评估业务规则
- 存在于集合中
- 提取/解压缩文件
- 从文本中提取日期和时间
- 提取文本
- 文件更改触发器
- 文件已存在
- 筛选集合
- 筛选数据表
- 文件夹存在
- 遍历循环
- 适用于文件夹中的每个文件
- 文件更改触发器 v3
- 查找和替换
- 查找匹配模式
- 对于文件夹中的每个文件夹
- 对于数据表中的每一行
- 将日期格式设置为文本
- 为值添加格式
- 从文本中生成数据表
- 获取资产
- 获取凭据/获取 Orchestrator 凭据
- 获取当前作业信息
- 获取环境文件夹
- 获取环境变量
- 获取文件信息
- 获取文件夹信息
- 获取作业
- 获取进程
- 获取行项目
- 获取密码
- 获取事务项目
- 获取用户名/密码
- 获取队列项目
- 全局变量更改触发器
- 输入对话框
- 调用代码
- 调用 COM 方法
- 调用 PowerShell
- 调用流程
- 调用 VBScript
- 调用工作流文件
- 是否为文本匹配
- 联接数据表
- 终止进程
- 启动工作流交互
- 列出存储文件
- 日志消息
- 查找数据表
- 手动触发器
- 合并集合
- 合并数据表
- 消息框
- 修改日期
- 修改文本
- 移动文件
- 移动文件夹
- 多重分配
- 向队列新增项目
- 通知全局变量已更改
- Orchestrator HTTP 请求
- 输出数据表
- 并行
- 并行的遍历循环
- 存在路径
- 推迟事务项目
- 流程终止触发器
- 流程启动触发器
- 流程跟踪作用域
- 发出警示
- 读取列表项目
- 读取文本文件
- 读取存储文本
- 删除数据列
- 删除数据行
- 删除重复行
- 从集合中删除
- 删除日志字段
- 替换匹配模式
- 重复次数
- 重复触发器
- 重命名文件
- 重命名文件夹
- 报告状态
- 重置计时器
- 恢复计时器
- 重试作用域
- 返回
- 运行本地触发器
- 运行代理
- 运行作业
- 运行并行流程
- 设置资产
- 发送电子邮件通知
- 设置凭据
- 设置环境变量
- 设置密码
- 设置任务状态
- 设置追踪状态
- 设置事务进度
- 设置事务状态
- 应停止
- 拆分文本
- 数据表排序
- 启动计时器
- 开始作业
- 停止作业
- 停止本地触发器
- 停止计时器
- 左侧/右侧的文本
- 要大写/小写的文本
- 时间触发器
- 触发器作用域
- 跟踪对象
- 超时作用域
- 更新行项目
- 更新列表项目
- 上传存储文件
- 等待下载
- 等待队列项目
- 先条件循环
- 工作流占位符
- 写入存储文本
- 写入文本文件
- 添加数据行
- AddQueueItem
- 添加事务项目
- 附加行
- BulkAddQueueItems
- 清除数据表
- 压缩 Zip 文件
- 复制文件
- 创建文件
- 创建文件夹
- 删除文件或文件夹
- 删除队列项目
- 删除存储文件
- 下载存储文件
- 提取解压缩文件
- 筛选数据表
- 获取资产
- 获取凭据
- GetJobs
- 获取队列项目
- GetQueueItems
- 获取本地路径的资源
- 获取行项目
- 获取事务项目
- 调用流程
- 联接数据表
- 列出存储文件
- 查找数据表
- 合并数据表
- 移动文件
- Orchestrator HTTP 请求
- OutputDataTable
- 存在路径
- 推迟事务项目
- 读取存储文本
- 读取文本文件
- 删除数据列
- 删除重复行
- 替换
- 设置资产
- 设置凭据
- SetTransactionProgress
- 设置事务状态
- 数据表排序
- 开始作业
- 停止作业
- 更新行项目
- 上传存储文件
- 等待队列项目
- 写入存储文本
- 写入文本文件
- 测试
- 发行说明
- 关于“测试”活动包
- 项目兼容性
- 项目设置
- Address
- AddTestDataQueueItem
- AttachDocument
- BulkAddTestDataQueueItems
- DeleteTestDataQueueItems
- GetTestDataQueueItem
- GetTestDataQueueItems
- GivenName
- LastName
- RandomDate
- RandomNumber
- RandomString
- RandomValue
- VerifyAreEqual
- VerifyAreNotEqual
- VerifyContains
- VerifyExpression
- VerifyExpressionWithOperator
- VerifyIsGreater
- VerifyIsGreaterOrEqual
- VerifyIsLess
- VerifyIsLessOrEqual
- VerifyIsRegexMatch
- VerifyRange
- Workflow Foundation

工作流活动
使用网格组件
The Grid component allows you to display an unlimited number of rows and columns. The Grid component also allows you to paginate, filter, sort data, and resize the column width at runtime.
先决条件
已安装UiPath.Form.Activites v2.0.2包或更高版本。
可排序
You can sort data inside columns in ascending or descending order. You sort the data at runtime, in the Form Renderer.
The data in the Grid is displayed in the same order as in the input data table. To sort all data in the Grid click any column header in the Form Renderer.
-
First click sorts the data in ascending order.
-
Second click sorts the data in descending order.
-
Third click restores the original order.

可筛选
You can filter data inside each column. You filter the data at runtime, in the Form Renderer.
要筛选列中的数据,请执行以下操作:
- 将鼠标悬停在列标题上,然后单击三元组
菜单。 - 选择筛选操作。
- Input a value in the Filter field of the triple bar menu. The input value in the Filter field is a condition for the filtering operation.
根据数据类型,可以使用以下筛选操作:
| 筛选操作 | 文本 | 数字 | 日期/时间 |
|---|---|---|---|
| 包含 | ✅ | ❌ | ❌ |
| 不包含 | ✅ | ❌ | ❌ |
| 等于 | ✅ | ✅ | ✅ |
| 不等于 | ✅ | ✅ | ✅ |
| 开头为 | ✅ | ❌ | ❌ |
| 结尾为 | ✅ | ❌ | ❌ |
| 小于 | ❌ | ✅ | ✅ |
| 小于或等于 | ❌ | ✅ | ❌ |
| 大于 | ❌ | ✅ | ✅ |
| 大于或等于 | ❌ | ✅ | ❌ |
| 在范围内 | ❌ | ✅ | ✅ |
| 空白 | ✅ | ✅ | ✅ |
| 非空白 | ✅ | ✅ | ✅ |
For all filtering operations applied on Text and Number data, you can add an additional filtering operation, using the operators:
- AND - displays data if both filter operations are true.
- OR - displays data if any of the filter operations is true.
可调整大小的列
You can change the width of the columns at runtime, in the Form Renderer. The Column(s) Resizable capability allows you to see the data inside columns better.
要调整列的大小,请将光标悬停在分隔列的边框上,直到双向箭头
出现。拖动边框,直至获得所需的列宽。

分页
You can display the data of the Grid component on pages that are numbered. The Pagination capability also includes setting the number of items per page.
To set the number of items per page: go to the Display tab of the Grid component and choose a value from the Items per page dropdown list. You can choose to display 10, 50 or 100 items per page.
At the bottom of the Form Renderer, at runtime you can view:
- 您所在页面的行数。
- 网格中的总行数。
- 在网格中的总页数中,您所在的页码。
您可以通过单击< >箭头浏览页面,也可以通过单击
箭头和最后一页,通过单击
箭头。
教程
要使用“网格”组件,请执行以下操作:
-
Drag and drop a Grid component in the Form Designer.
-
Go to the Field Key tab and change the Property Name to the input datatable argument from the FormFieldsCollection property of the Create Form activity.
在本例中,输入
fruitDataTableArg。 数据表参数将fruit_table.csv文件中的数据绑定到表单。 -
In the Display tab, check the capabilities that you want to apply to the Grid component. For this example, check all four boxes: Sortable, Filterable, Column(s) Resizable, and Pagination.
-
In the Items Per Page field, choose from the dropdown list the number of items per page that you want to display in the form. For this example, choose
10. -
保存组件。
-
Drag and drop inside the Grid the form components that match the column values inside the input datatable. For this example, drag and drop the following components: one Text Field, one Number, and one Date/Time.
- 转到“文本字段”组件的“字段键”选项卡,然后将“属性名称”更改为数据表中保存文本数据的列的名称。对于此示例,将属性名称更改为
fruit。 - 转到“数字”组件的“字段键”选项卡,然后将“属性名称”更改为数据表中保存数字数据的列的名称。在此示例中,将“属性名称”更改为
qty。 - 转到“日期/时间”组件的“字段键”选项卡,然后将“属性名称”更改为数据表中保存日期/时间数据的列的名称。在此示例中,将“属性名称”更改为
expdate。
备注:请务必保存表单组件,然后再关闭它们!
- 转到“文本字段”组件的“字段键”选项卡,然后将“属性名称”更改为数据表中保存文本数据的列的名称。对于此示例,将属性名称更改为
-
保存表单。
-
Run the workflow and explore the Grid component capabilities.
示例工作流
要查看完整的工作流或供日后参考,请下载XAML 示例