UiPath Documentation
apps
latest
false
旧版 Apps 用户指南
重要 :
有关 Studio Web 中的应用程序项目文档,请参阅 Studio Web 文档中的“应用程序项目”一章:https://docs.uipath.com/zh-CN/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web。 请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

对选项集值使用计数

简介

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:

  • 获取选项集值的总数。
  • 获取表格中选定行的“选项集”字段计数。

先决条件

为此,您首先需要准备一个具有两个“选项集”字段的实体,如下所示:

  • 选择- 不允许多选
  • 多项选择- 允许多项选择

程序

  1. 打开您现有的应用程序或启动一个新应用程序。

  2. 添加包含两个选项集字段的实体。 实体字段和数据应类似于以下示例。

  3. Add a table, and bind the entity to the Data Source property of the table.

  4. 在容器中添加两个并排的标签。

  5. Add the following in the Text property of the first label: The total number of values in the Choice Set:.

  6. Add the Choices field of the entity using a Count function on the second label as shown in the example below.

  7. 在第二个容器中添加两个并排的标签。

  8. Add the following in the Text property of the first label: The number of values on the selected row:.

  9. Add the Table.entity.SelectedValues field, using a Count function on the second label as shown in the example below.

结果

预览应用程序时,选项集中的值总数显示为3

所选行上的值数量会因所选行而异。

  • 简介
  • 先决条件
  • 程序
  • 结果

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新