Skip to content

Commit 1a46d5e

Browse files
authored
Merge pull request MicrosoftDocs#372 from AFTOwen/mvc
updated AFD/CDS and customize/gallery
2 parents 980a95e + 4b8341f commit 1a46d5e

File tree

13 files changed

+66
-77
lines changed

13 files changed

+66
-77
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
items:
3636
- name: Customize a generated app
3737
items:
38-
- name: Customize a browse screen
38+
- name: 1 - Galleries
3939
href: ./canvas-apps/customize-layout-sharepoint.md
40-
- name: Customize a form
40+
- name: 2 - Forms
4141
href: ./canvas-apps/customize-forms-sharepoint.md
42-
- name: Customize a card
42+
- name: 3 - Cards
4343
href: ./canvas-apps/customize-card.md
4444
- name: Create an app from scratch
4545
items:
Lines changed: 47 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,111 @@
11
---
2-
title: Tutorial for customizing a gallery | Microsoft Docs
3-
description: In this tutorial, you customize the default browse screen, including the gallery, of an app generated in PowerApps.
4-
documentationcenter: na
2+
title: Tutorial - Customize a gallery in a generated app | Microsoft Docs
3+
description: In this tutorial, you customize the data that appears in the gallery and other elements of an app that was generated automatically in PowerApps.
54
author: AFTOwen
6-
manager: kfile
7-
editor: ''
8-
tags: ''
95

106
ms.service: powerapps
11-
ms.devlang: na
12-
ms.topic: conceptual
7+
ms.topic: tutorial
138
ms.component: canvas
14-
ms.date: 03/11/2018
9+
ms.date: 04/24/2018
1510
ms.author: anneta
16-
11+
#As a business analyst with little or no coding experience, I want to change the data that appears in the default gallery of a generated app and make other changes so that my users can more easily manage information.
1712
---
1813
# Tutorial: Customize a gallery in PowerApps
19-
In this tutorial, you'll customize the default browse screen, including the gallery, of an app generated in PowerApps. You can manage data by using the default app without customizing it, but it will be much more powerful and easier to use if you make these changes:
14+
In this tutorial, you'll customize the gallery and make other changes to an app that was generated automatically in Microsoft PowerApps. Users can manage data in the app even if you don't make these changes, but the app will be easier to use if you customize it for your organization's needs:
2015

2116
> [!div class="checklist"]
22-
> * Change the layout
23-
> * Change the data that appears
24-
> * Set the columns for filtering and sorting
25-
> * Test filtering and sorting
26-
> * Change the title
27-
> * Show a scrollbar
17+
> * Change the layout of the gallery
18+
> * Change the type of data that appears in the gallery
19+
> * Change the columns by which users can sort and search the data
20+
> * Change the screen title
21+
> * Show a scroll bar
2822
29-
This tutorial starts with an app generated from the [Common Data Service for Apps](../common-data-service/data-platform-intro.md), but the same concepts apply to apps generated from SharePoint, Excel, and other data sources.
23+
This tutorial starts with an app that was generated from a specific data source. However, the same concepts apply to any app that you generate in PowerApps from a SharePoint list, an Excel table, or another data source.
3024

3125
If you don't have a license for PowerApps, you can [sign up for free](../signup-for-powerapps.md).
3226

3327
## Prerequisites
34-
Before you start this tutorial, [generate an app](data-platform-create-app.md) from the Common Data Service for Apps.
28+
You can review this topic for general concepts only, or you can follow each step if you first [generate this app](data-platform-create-app.md).
3529

3630
## Open the generated app
37-
1. Sign in to [PowerApps](https://web.powerapps.com), and then click or tap **Apps** near the left edge.
31+
1. Sign in to [PowerApps](https://web.powerapps.com), and then select **Apps** near the left edge.
3832

3933
![PowerApps home page](./media/customize-layout-sharepoint/sign-in.png)
4034

41-
1. Find the app that you generated, and then click or tap the ellipsis icon (**...**) for it near the right edge.
42-
43-
![App list](./media/customize-layout-sharepoint/open-for-edit.png)
44-
45-
1. In the menu that appears, click or tap the option to edit the app.
35+
1. Find the app that you generated, select the ellipsis icon (**...**) for it, and then select **Edit**.
4636

47-
## Customize the gallery
48-
1. On the browse screen, click or tap any item except the first one in the list of accounts.
37+
## Change the layout
38+
1. On the browse screen, select the gallery by clicking or tapping any item except the first one in the list of accounts.
4939

50-
This step selects the **Gallery** control, which shows the list of accounts.
40+
When the gallery is selected, a selection box with handles surrounds it.
5141

5242
![Selected gallery](./media/customize-layout-sharepoint/select-gallery.png)
5343

54-
1. In the right-hand pane, click or tap **Accounts** to the right of the **Data** label.
44+
1. Near the right edge, select **Accounts** to open the **Data** pane.
5545

5646
![Open the **Data** pane](./media/customize-layout-sharepoint/open-data-pane.png)
5747

58-
1. In the **Data** pane, click or tap the down arrow to open the list of options under **Layout**.
48+
1. In the **Data** pane, open the list of options under **Layout**.
5949

6050
![Show layout options](./media/customize-layout-sharepoint/show-layouts.png)
6151

62-
1. In the list of options, click or tap the option that shows only a title.
52+
1. In the list of options, select the option that shows only a title.
6353

6454
![Select title-only layout](./media/customize-layout-sharepoint/choose-layout.png)
6555

66-
1. In the **Data** pane, click or tap the down arrow to open the list of options for the title.
56+
1. In the **Data** pane, open the list of options for the title.
6757

6858
![Select title-only layout](./media/customize-layout-sharepoint/show-title-options.png)
6959

70-
1. In the list of options, click or tap **name** to show that data in the **Gallery** control.
60+
1. In the list of options, select **Account name (name)**, and then close the **Data** pane.
7161

72-
![Final gallery](./media/customize-layout-sharepoint/final-gallery.png)
62+
The gallery shows the name of each account.
7363

64+
![Final gallery](./media/customize-layout-sharepoint/final-gallery.png)
7465

75-
## Set the sort and search columns
76-
1. Select the **Gallery** control as the previous section describes.
66+
## Change the sort and search columns
67+
1. Select the gallery as the previous section describes.
7768

7869
![Select gallery](./media/customize-layout-sharepoint/select-gallery-title.png)
7970

80-
2. Near the upper-left corner, ensure that the property list shows **Items**.
71+
2. Near the upper-left corner, confirm that the property list shows **Items**.
8172

8273
![Items property](./media/customize-layout-sharepoint/items-property.png)
8374

84-
The value of this property appears in the formula bar and determines not only the data source for the gallery but also the filter and sort columns.
75+
The value of this property appears in the formula bar. You set this property to specify not only the data source for the gallery but also the columns by which users can sort and search the data.
76+
77+
1. Copy this formula, and then paste it in the formula bar.
8578

86-
1. In the formula bar, replace both instances of **emailaddress1** to **name**, and retain the double-quotation marks that surround each instance.
79+
```SortByColumns(Search(Accounts, TextSearchBox1.Text, "name"), "name", If(SortDescending1, Descending, Ascending))```
8780

88-
The formula should match this example:
81+
By using this formula, you ensure that:
8982

90-
![Formula for the Items property](./media/customize-layout-sharepoint/items-value.png)
83+
- If a user types one or more characters in the search bar, the gallery shows only those account names that contain the text that the user typed.
84+
- If a user selects the sort icon, the gallery is sorted alphabetically by account name in either ascending or descending order, depending on how many times the user selects the icon.
9185

92-
The first instance of **name** specifies that the user can filter the list to show only those records for which the account name contains text that the user typed in the search bar. The second instance of **name** specifies that the user can sort the list alphabetically by account name. For more information about these and other functions, see the [formula reference](formula-reference.md).
86+
For more information about these and other functions, see the [formula reference](formula-reference.md).
9387

9488
## Test sorting and searching
95-
1. Open Preview mode by pressing F5 (or by clicking or tapping the play button near the upper-right corner).
89+
1. Open Preview mode by pressing F5 (or by selecting the play button near the upper-right corner).
9690

9791
![Open Preview mode](./media/customize-layout-sharepoint/open-preview.png)
9892

99-
1. Near the upper-right corner of the browse screen, click or tap the sort icon one or more times to change the alphabetical sort order between ascending and descending.
93+
1. Near the upper-right corner of the browse screen, select the sort icon one or more times to change the alphabetical sort order between ascending and descending.
10094

10195
![Test the sort icon](./media/customize-layout-sharepoint/sort-button.png)
10296

103-
1. In the search box, type **k** to show only those accounts for which the name contains the letter that you typed.
97+
1. In the search box, type **k** to show only those account names that contain the letter that you typed.
10498

10599
![Test the search bar](./media/customize-layout-sharepoint/test-filter.png)
106100

107-
1. Remove all text from the search bar, and then close Preview mode by pressing Esc (or by clicking or tapping the close icon *under* the title bar for PowerApps).
101+
1. Remove all text from the search bar, and then close Preview mode by pressing Esc (or by selecting the close icon near the upper-right corner).
108102

109-
## Change the title of the screen
110-
1. Click or tap the title of the screen to select it.
103+
## Change the screen title
104+
1. Select the title of the screen by clicking or tapping it.
111105

112106
![Select screen title](./media/customize-layout-sharepoint/select-title.png)
113107

114-
1. Ensure that the property list shows **Text**, and then type **Browse**, surrounded by double quotation marks, in the formula bar.
108+
1. Ensure that the property list shows **Text** and then, in the formula bar, replace **Accounts** with **Browse** (retaining the double quotation marks).
115109

116110
![Update screen title](./media/customize-layout-sharepoint/change-screen-title.png)
117111

@@ -120,18 +114,18 @@ Before you start this tutorial, [generate an app](data-platform-create-app.md) f
120114
![New screen title](./media/customize-layout-sharepoint/new-screen-title.png)
121115

122116
## Show a scroll bar
123-
If your users might not have touch screens or mouse wheels, configure the **Gallery** control to show a scroll bar when the user hovers over it with the mouse. That way, users can show all accounts even if the screen can't show them all at once.
117+
If your users might have neither touch screens nor mouse wheels, configure the gallery to show a scroll bar when the user hovers over it with the mouse. That way, users can show all accounts even if the screen can't show them all at once.
124118

125-
1. Select the **Gallery** control as the first procedure describes.
119+
1. Select the gallery as the first procedure describes.
126120

127121
![Select gallery](./media/customize-layout-sharepoint/select-gallery-sorted.png)
128122

129-
1. On the **Gallery** tab, click or tap **Show scrollbar**, and confirm that the value of that property has changed to **true**.
123+
1. On the **Gallery** tab, select **Show scrollbar**, and confirm that the value of that property has changed to **true**.
130124

131125
![Show scrollbar](./media/customize-layout-sharepoint/show-scrollbar.png)
132126

133127
## Next steps
134-
In this tutorial, you've customized the **Gallery** control and the title of the default browse screen of a generated app. You can also customize the default screens for displaying details and creating or updating accounts. Those screens contain a **Display form** control and an **Edit form** control, and you can change (for example) which types of data they show and in which order.
128+
In this tutorial, you've customized the gallery and made other changes to the default screen for browsing records in a generated app. You can also customize the default screens for displaying details and creating or updating accounts. As the browse screen contains a gallery, the other two screens in the app contain forms. You can change, for example, which types of data the forms show and in which order.
135129

136130
> [!div class="nextstepaction"]
137131
> [Customize forms](customize-forms-sharepoint.md)
Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,59 @@
11
---
2-
title: Generate an app in PowerApps for the Common Data Service for Apps (quickstart)| Microsoft Docs
3-
description: Automatically generate an app in PowerApps to manage data in the Common Data Service for Apps
4-
documentationcenter: na
2+
title: Quickstart - Generate an app from Common Data Service for Apps | Microsoft Docs
3+
description: Automatically generate an app in PowerApps to manage data in Common Data Service for Apps
54
author: AFTOwen
6-
manager: kfile
75

86
ms.service: powerapps
9-
ms.devlang: na
107
ms.topic: conceptual
118
ms.component: canvas
129
ms.date: 03/10/2018
1310
ms.author: anneta
1411

1512
---
16-
# Quickstart for generating an app in PowerApps for the Common Data Service for Apps
13+
# Quickstart: Generate an app from Common Data Service for Apps in PowerApps
1714

18-
In this quickstart, you'll use PowerApps to automatically generate your first app based on a list of sample accounts in the [Common Data Service for Apps](../common-data-service/data-platform-intro.md). In this app, you can browse all accounts, show details of a single account, and create, update, or delete an account.
15+
In this quickstart, you'll use Microsoft PowerApps to automatically generate an app based on a list of sample accounts in [Common Data Service (CDS) for Apps](../common-data-service/data-platform-intro.md). In this app, you can browse all accounts, show details of a single account, and create, update, or delete an account.
1916

20-
To follow this quickstart, you must switch to an [environment](working-with-environments.md) in which a database in the Common Data Service has been created and contains data. If no such environment exists and you have administrative privileges, you can [create an environment](../../administrator/environments-administration.md#create-an-environment) that meets this requirement.
17+
To follow this quickstart, you must [switch to an environment](working-with-environments.md) in which a database in CDS for Apps has been created, contains data, and allows updates. If no such environment exists and you have administrative privileges, you can [create an environment](../../administrator/environments-administration.md#create-an-environment) that meets this requirement.
2118

2219
If you don't have a license for PowerApps, you can [sign up for free](../signup-for-powerapps.md).
2320

2421
## Generate an app
25-
1. Sign in to [PowerApps](https://web.powerapps.com).
22+
1. Sign in to [PowerApps](https://web.powerapps.com) and, if necessary, switch environments as specified earlier in this topic.
2623

2724
![PowerApps home page](./media/data-platform-create-app/sign-in.png)
2825

2926
1. Under **Make apps like these**, hover over **Start from data**, and then select **Make this app**.
3027

3128
![Option to create an app](./media/data-platform-create-app/make-this-app.png)
3229

33-
1. Under **Start with your data**, select the arrow that points to the right.
30+
1. On the **Common Data Service** tile, select **Phone layout**.
3431

35-
![Arrow icon](./media/data-platform-create-app/right-arrow.png)
32+
![Connection tile](./media/data-platform-create-app/connection-tile.png)
3633

37-
1. Under **Connections**, select your connection to the Common Data Service.
34+
1. Under **Choose a table**, select **Accounts**, and then select **Connect**.
3835

39-
1. Type **Accounts** in the search box (near the right edge), select **Accounts** under **Choose a table**, and then select **Connect**.
36+
1. If the **Welcome to PowerApps Studio** dialog box appears, select **Skip**.
4037

41-
![Select an entity](./media/data-platform-create-app/select-entity.png)
38+
Your app opens to the browse screen, which shows a list of accounts. Near the top of the screen, a title bar shows icons for refreshing the list, sorting the list, and creating an account. Under the title bar, a search box provides the option to filter the list based on text that you type or paste.
4239

43-
After a few minutes, your app opens to the browse screen, which shows a list of accounts. Near the top of the screen, a title bar shows icons for refreshing the list, sorting the list, and creating an account. Under the title bar, a search box provides the option to filter the list based on text that you type or paste.
44-
45-
By default, the list shows an image, an email address, a city, and an ID for that account. But you can customize the list, which is called a gallery, to show other types of data.
40+
By default, the list shows an email address, a city, and an ID for that account. But you can customize the list, which is called a gallery, to show other types of data.
4641

4742
![Browse screen](./media/data-platform-create-app/browse-screen.png)
4843

4944
## Save the app
5045
You'll probably want to make more changes before you use this app or share it with others. As a best practice, save your work so far before you proceed.
5146

52-
1. Near the upper-left corner, click or tap the **File** tab.
47+
1. Near the upper-left corner, select the **File** tab.
5348

5449
1. In the **App settings** page, set the app name to **AppGen**, change the background color to deep red, and change the icon to a checkmark.
5550

5651
![App settings page](./media/data-platform-create-app/app-settings.png)
5752

58-
1. Near the left edge, click or tap **Save**.
53+
1. Near the left edge, select **Save** and then, in the lower-left corner, select **Save**.
5954

6055
## Next steps
61-
In this quickstart, you created an app to manage sample data about accounts in the Common Data Service for Apps. As a next step, customize the default browse screen to better suit your needs.
56+
In this quickstart, you created an app to manage sample data about accounts in CDS for Apps. As a next step, customize the gallery and other elements of the default browse screen to better suit your needs.
6257

6358
> [!div class="nextstepaction"]
64-
> [Customize a default browse screen](customize-layout-sharepoint.md).
59+
> [Customize a gallery](customize-layout-sharepoint.md).
Loading
Binary file not shown.
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)