- 入门指南
- 演示应用程序
- 如何
- 通知
- 使用 VB 表达式
- 设计应用程序
- 事件和规则
- 在应用程序中利用 RPA
- 在应用程序中利用实体
- 在应用程序中利用队列
- 在应用程序中利用媒体文件
- 在应用程序中利用操作
- 在应用程序中利用 Connections
- 应用程序生命周期管理 (ALM)
- UiPath 第一方应用程序
- 基本故障排除指南
简介
You can build an app to count the values from a table field that is of the type Choice Set.
In this example, we will use the Count function to do the following:
- 获取选项集值的总数。
- 获取表格中选定行的“选项集”字段计数。
先决条件
为此,您首先需要准备一个具有两个“选项集”字段的实体,如下所示:
- 选择- 不允许多选
- 多项选择- 允许多项选择
程序
-
打开您现有的应用程序或启动一个新应用程序。
-
添加包含两个选项集字段的实体。 实体字段和数据应类似于以下示例。
-
Add a table, and bind the entity to the Data Source property of the table.
-
在容器中添加两个并排的标签。
-
Add the following in the Text property of the first label:
The total number of values in the Choice Set:. -
Add the Choices field of the entity using a Count function on the second label as shown in the example below.
-
在第二个容器中添加两个并排的标签。
-
Add the following in the Text property of the first label:
The number of values on the selected row:. -
Add the Table.entity.SelectedValues field, using a Count function on the second label as shown in the example below.
结果
预览应用程序时,选项集中的值总数显示为3 。
所选行上的值数量会因所选行而异。