UiPath Documentation
apps
latest
false
レガシ Apps ユーザー ガイド
重要 :
Studio Web のアプリ プロジェクトについては、Studio Web ガイドの「アプリ プロジェクト」セクション (https://docs.uipath.com/ja/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web) をご覧ください。 このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Choice Set 値でカウントを使用する

はじめに

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:

  • チョイス セット値の合計数を取得します。
  • 表内の選択した行からチョイス セット フィールドの数を取得します。

前提条件

そのためには、まず次のように、2 つのチョイス セット フィールドを持つエンティティを準備する必要があります。

  • チョイス - 複数選択を許可しない
  • 複数選択 - 複数選択を許可

手順

  1. 既存のアプリケーションを開くか、新しいアプリケーションを開始します。

  2. 2 つのチョイス セット フィールドを含むエンティティを追加します。エンティティのフィールドとデータは、以下の例のようになります。

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

  4. コンテナー内に 2 つのラベルを並べて追加します。

  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. 2 つ目のコンテナー内に、2 つのラベルを並べて追加します。

  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 アカデミー

質問する UiPath フォーラム

最新情報を取得