You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-select.md
+26-33Lines changed: 26 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
7
7
ms.topic: reference
8
8
ms.custom: canvas
9
9
ms.reviewer: tapanm
10
-
ms.date: 12/19/2018
10
+
ms.date: 01/08/2020
11
11
ms.author: gregli
12
12
search.audienceType:
13
13
- maker
@@ -34,13 +34,37 @@ You can use **Select** only in [behavior formulas](../working-with-formulas-in-d
34
34
35
35
A control can't **Select** itself directly or indirectly through other controls.
36
36
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
+
37
39
## Syntax
38
40
**Select**( *Control* )
39
41
40
42
**Control* – Required. The control to select on behalf of the user.
41
43
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
+
42
50
## Examples
43
51
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
+
44
68
#### Basic usage
45
69
46
70
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.
85
109
86
110
Use individual controls in the gallery to take actions that differ from the gallery's default action.
87
111
88
-

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
+

0 commit comments