- 基本情報
- デモ アプリ
- 使い方
- 通知
- VB の式を使用する
- アプリをデザインする
- イベントとルール
- アプリで RPA を活用する
- アプリ内でエンティティを活用する
- アプリ内でキューを活用する
- アプリでメディアを活用する
- アプリでアクションを活用する
- アプリでコネクションを活用する
- アプリケーション ライフサイクル管理 (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:
- チョイス セット値の合計数を取得します。
- 表内の選択した行からチョイス セット フィールドの数を取得します。
前提条件
そのためには、まず次のように、2 つのチョイス セット フィールドを持つエンティティを準備する必要があります。
- チョイス - 複数選択を許可しない
- 複数選択 - 複数選択を許可
手順
-
既存のアプリケーションを開くか、新しいアプリケーションを開始します。
-
2 つのチョイス セット フィールドを含むエンティティを追加します。エンティティのフィールドとデータは、以下の例のようになります。
-
Add a table, and bind the entity to the Data Source property of the table.
-
コンテナー内に 2 つのラベルを並べて追加します。
-
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.
-
2 つ目のコンテナー内に、2 つのラベルを並べて追加します。
-
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 と表示されます。
選択した行の値の数は、選択した行によって変わります。