Skip to content

Commit b201c52

Browse files
authored
Merge pull request #1408 from MicrosoftDocs/anneta-datapanel
updated function-choices for UI changes
2 parents 6074e99 + 010e172 commit b201c52

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

powerapps-docs/maker/canvas-apps/functions/function-choices.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,49 +49,51 @@ At this time, you can use lookup columns only with SharePoint and Common Data Se
4949

5050
**Note**: Entity names are singular on web.powerapps.com and plural in PowerApps Studio.
5151

52-
![A partial list of the fields from the Account entity in Commmon Data Service for Apps, highlighting that "Primary Contact" is a lookup field](media/function-choices/entity-account.png)
52+
![A partial list of the fields from the Account entity in Commmon Data Service for Apps, highlighting that "Primary Contact" is a lookup field](media/function-choices/entity-account.png)
5353

54-
The **Accounts** entity has a **Primary Contact** column, which is a lookup to the **Contacts** entity.
54+
The **Accounts** entity has a **Primary Contact** column, which is a lookup to the **Contacts** entity.
5555

56-
![A partial list of the fields from the Contact entity in the Commmon Data Service](media/function-choices/entity-contact.png)
56+
![A partial list of the fields from the Contact entity in the Commmon Data Service](media/function-choices/entity-contact.png)
5757

58-
For each account, a contact is designated as the primary contact, or the primary contact is *blank*.
58+
For each account, a contact is designated as the primary contact, or the primary contact is *blank*.
5959

60-
2. [Generate an app](../data-platform-create-app.md) from the **Accounts** entity.
60+
1. [Generate an app](../data-platform-create-app.md) from the **Accounts** entity.
6161

62-
3. In the list of screens and controls near the left edge, scroll down until **EditScreen1** appears, and then select **EditForm1** just under it.
62+
1. In the list of screens and controls near the left edge, scroll down until **EditScreen1** appears, and then select **EditForm1** just under it.
6363

64-
![In the left navigation bar, select EditForm1 on EditScreen1](media/function-choices/select-editform.png)
64+
![In the left navigation bar, select EditForm1 on EditScreen1](media/function-choices/select-editform.png)
6565

66-
4. On the **Properties** tab of the right pane, select **Accounts**.
66+
1. On the **Properties** tab of the right pane, select **Edit fields**.
6767

68-
![Select Accounts to open the Data pane](media/function-choices/open-data-pane.png)
68+
![Open the Data pane](media/function-choices/open-data-pane.png)
6969

70-
5. In the **Data** pane, scroll down to the list of fields.
70+
1. In the **Fields** pane, select **Add field**.
7171

72-
![Select Accounts to open the Data pane](media/function-choices/field-list.png)
72+
1. Search for the **Primary Contact** field, select its check box, and then select **Add**.
7373

74-
6. Find the **Primary Contact** check box, and then select it if it's cleared.
74+
![Select Accounts to open the Data pane](media/function-choices/field-list.png)
7575

76-
7. (optional) Drag the **Primary Contact** field from the bottom to the top of the list of fields.
76+
The **Primary Contact** field appears at the bottom of the form. If the field shows an error, select **Data sources** on the **View** tab, select the ellipsis (...) for the **Accounts** data source, and then select **Refresh**.
7777

78-
8. In the card for **Primary Contact**, select the **Combo box** control.
78+
1. (optional) Drag the **Primary Contact** field from the bottom to the top of the list of fields.
79+
80+
1. In the card for **Primary Contact**, select the **Combo box** control.
7981

8082
The **Items** property of that control is set to a formula that identifies the column by either its display name, as in the first example, or its logical name, as in the second example:
8183

8284
- **Choices( Accounts.'Primary Contact' )**
8385
- **Choices( Accounts.primarycontactid )**
8486

85-
![A canvas screen with a form control. The **Combo box** control within the **Primary Contact** card is selected, and the Items property with the formula Choices( Accounts.'Primary Contact' ) appears](media/function-choices/accounts-primary-contact.png)
87+
![A canvas screen with a form control. The Combo box control within the Primary Contact card is selected, and the Items property with the formula Choices( Accounts.'Primary Contact' ) appears](media/function-choices/accounts-primary-contact.png)
8688

87-
9. On the **Home** tab, select **New screen**, and then select **Blank**.
89+
1. On the **Home** tab, select **New screen**, and then select **Blank**.
8890

89-
10. On the **Insert** tab, select **Data table**.
91+
1. On the **Insert** tab, select **Data table**.
9092

91-
11. Set the **Items** property of the **Data table** control to this formula:
93+
1. Set the **Items** property of the **Data table** control to this formula:
9294

9395
**Choices( Accounts.'Primary Contact' )**
9496

95-
12. Open the **Data** pane, and then select the check boxes for **firstname**, **lastname**, or any other field that you want to show.
97+
1. In the middle of the **Data table** control, select the link that starts **Choose the fields...**, and then select the check boxes for the field or fields that you want to show (for example, **firstname** and **lastname**).
9698

97-
![A canvas screen with a data table control. The Items property is set to the formula Choices( Accounts.'Primary Contact' ), and the table shows the firstname and lastname columns for the first set of records from the Contacts entity](media/function-choices/full-accounts-pc.png)
99+
![A canvas screen with a data table control. The Items property is set to the formula Choices( Accounts.'Primary Contact' ), and the table shows the firstname and lastname columns for the first set of records from the Contacts entity](media/function-choices/full-accounts-pc.png)
Loading
Loading

0 commit comments

Comments
 (0)