Skip to content

Commit 07a707e

Browse files
committed
updates from gregli
1 parent d016653 commit 07a707e

File tree

1 file changed

+26
-33
lines changed

1 file changed

+26
-33
lines changed

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

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: reference
88
ms.custom: canvas
99
ms.reviewer: tapanm
10-
ms.date: 12/19/2018
10+
ms.date: 01/08/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -34,13 +34,37 @@ You can use **Select** only in [behavior formulas](../working-with-formulas-in-d
3434

3535
A control can't **Select** itself directly or indirectly through other controls.
3636

37+
The select function can also be used in repeating container controls such as gallery. For example, it can be used to specify the row or column to select in a gallery and the control to select within that row or column of the gallery.
38+
3739
## Syntax
3840
**Select**( *Control* )
3941

4042
* *Control* – Required. The control to select on behalf of the user.
4143

44+
**Select**( *Control, Row or column, Child Control* )
45+
46+
- *Control* – Required. The control to select on behalf of the user.
47+
- *Row or column* – Not required. The number of row or column (starting with 1) in a gallery control to select on behalf of the user.
48+
- *Child Control* - Not required. The child control of the control identified in the 'control' parameter to select.
49+
4250
## Examples
4351

52+
- *Button*
53+
54+
```Select(button1)```
55+
56+
- *Gallery*
57+
58+
```Select(Gallery1, Row1)```
59+
60+
Simulates a user selecting Row1 in Gallery1.
61+
62+
- *Gallery*
63+
64+
```Select(Gallery1, Row1, ChildControl1)```
65+
66+
Simulates a user selecting ChildConttrol1 in Row1 of Gallery1.
67+
4468
#### Basic usage
4569

4670
1. Add a **[Button](../controls/control-button.md)** control, and rename it **Button1** if it has a different name.
@@ -85,35 +109,4 @@ A control can't **Select** itself directly or indirectly through other controls.
85109

86110
Use individual controls in the gallery to take actions that differ from the gallery's default action.
87111

88-
![An animation that shows the default value of the OnSelect property for a gallery control, as well as a control that takes a different action](media/function-select/gallery-select.gif)
89-
90-
## Select function for Test Studio
91-
92-
The select function can also be used to specify the row or column to select in a gallery and the control to select within that row or column of the gallery.
93-
94-
### Syntax
95-
96-
*Select(Control, Row or column, Child Control)*
97-
98-
- *Control* – Required. The control to select on behalf of the user.
99-
- *Row or column* – Not required. The row or column in a gallery control to select on behalf of the user.
100-
- *Child Control* - Not required. The child control of the control identified in the 'control' parameter to select.
101-
102-
### Examples
103-
104-
- *Button*
105-
106-
```Select(button1)```
107-
108-
- *Gallery*
109-
110-
```Select(Gallery1, Row1)```
111-
112-
Simulates a user selecting Row1 in Gallery1.
113-
114-
- *Gallery*
115-
116-
```Select(Gallery1, Row1, ChildControl1)```
117-
118-
Simulates a user selecting ChildConttrol1 in Row1 of Gallery1.
119-
112+
![An animation that shows the default value of the OnSelect property for a gallery control, as well as a control that takes a different action](media/function-select/gallery-select.gif)

0 commit comments

Comments
 (0)