UiPath Documentation
apps
latest
false
Guide de l'utilisateur des applications héritées
Important :
Pour obtenir de la documentation sur les projets d'application créés dans Studio Web, reportez-vous au chapitre Projets d'application de la documentation de Studio Web : https://docs.uipath.com/fr/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web. Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Utiliser Count With Choice Set Values

Introduction

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:

  • Obtenez le nombre total de valeurs de l'ensemble de choix.
  • Obtenez le nombre de champs Ensemble de choix d'une ligne sélectionnée dans une table.

Prérequis

Pour ce faire, vous devez d'abord préparer une entité avec deux champs Ensemble de choix , comme suit :

  • Choix ( Choices ) - n'autorisant pas les sélections multiples
  • Choix multiples - permettant des sélections multiples

Procédure

  1. Ouvrez votre application déjà existante ou lancez-en une nouvelle.

  2. Ajoutez l'entité contenant les deux champs Ensemble de choix . Les champs d'entité et les données doivent ressembler à l'exemple ci-dessous.

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

  4. Ajoutez deux libellés l'un à côté de l'autre à l'intérieur d'un conteneur.

  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. Ajoutez deux libellés l'un à côté de l'autre à l'intérieur d'un deuxième conteneur.

  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.

Résultat

Lors de la prévisualisation de l'application, le nombre total de valeurs dans l'ensemble de choix s'affiche sous la forme de 3 .

Le nombre de valeurs sur la ligne sélectionnée change en fonction de la ligne sélectionnée.

  • Introduction
  • Prérequis
  • Procédure
  • Résultat

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour