UiPath Documentation
apps
2023.4
false
Guia do usuário do Apps
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Use contagem com valores de conjunto de escolhas

Introdução

You can build an app to count the values from a table field that is of type Choice Set.

In this example we will use the Count function to do the following:

  • Obtenha a contagem total de valores do conjunto de opções.
  • Obtenha a contagem de campos Choice Set de uma linha selecionada dentro de uma tabela.

Pré-requisitos

To do this, you first need to prepare an entity with two Choice Set fields, as follows:

  • Choices - not allowing multiple selections
  • Multiple choices - allowing multiple selections

Procedimento

  1. Abra seu aplicativo existente ou inicie um novo.

  2. Add the entity containing the two Choice Set fields. The entity fields and data should look similar to the example below.

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

  4. Adicione dois rótulos um ao lado do outro dentro de um contêiner.

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

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

  5. Adicione dois rótulos um ao lado do outro dentro de um segundo contêiner.

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

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

Resultado

When previewing the app, the total number of values in the Choice Set is displayed as 3.

O número de valores na linha selecionada muda dependendo da linha selecionada.

  • Introdução
  • Pré-requisitos
  • Procedimento
  • Resultado

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades