Subscribe

UiPath Apps

The UiPath Apps Guide

Using Choice Set

Overview


Before starting this example, make sure that you have the proper permissions from Data Service. For more information, check the Data Service - Managing Access page.
For the purpose of this example we will use an entity called Fauna with the following fields:

  • Animals - type Choice Set, multiple selection not allowed
  • Continent - type Choice Set, multiple selection allowed
  • Endangered - type Choice Set, multiple selection not allowed

Procedure


  1. Open your already existing application or start a new one.
  2. Add the entity you want to use to your app. For more information on how to do this, see Referencing an Entity in your App.
  3. Add a List control and configure it as follows:
    • In our example, reference the Fauna.Animals field of the entity in the List Source field.
    • In our example, reference the Animals.SelectedValue field of the entity in the Selected value binding field.
  4. Add a Multiselect dropdown control and configure it as follows:
    • In our example, reference the Fauna.Continent field of the entity in the List source field of the control.
    • In our example, reference the Continent.SelectedValues field of the entity in the Selected value binding field of the control.
    • In our example, add Continent: in the Label field.
  5. Add a Radio Button control and configure it as follows:
    • In our example, reference the Endangered.SelectedValue field of the entity in the Selected value binding field of the control.
    • In our example, add Endangered: in the Label field.

📘

Hint:

Notice that some properties are written as SelectedValue, while others are SelectedValues.
Choice Set fields that have the Allow multiple selections property on will be displayed as SelectedValues, while the ones without this option activated will be displayed as SelectedValue.

Procedure result


While previewing your app, you can select multiple animals from the list and continent from the dropdown.
You can also mark the ones that are endangered using the radio buttons.

10661066

Updated 5 months ago

Using Choice Set


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.