Skip to content

Commit 931f619

Browse files
authored
Merge pull request #2381 from MicrosoftDocs/gregli-fixes2
Various fixes for public github reported issues
2 parents 468b012 + 30a0cb8 commit 931f619

File tree

7 files changed

+39
-23
lines changed

7 files changed

+39
-23
lines changed

powerapps-docs/maker/canvas-apps/functions/data-types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ Canvas apps use the included time-zone information in **Datetimeoffset** fields
184184
Canvas apps read and write values of the [**Time**](https://docs.microsoft.com/sql/t-sql/data-types/time-transact-sql) data type in SQL Server as text strings in the [ISO 8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations). For example, you must parse this string format and use the [**Time**](function-date-time.md) function to convert the text string **"PT2H1M39S"** to a **Time** value:
185185

186186
```powerapps-dot
187-
First(
188-
ForAll(
189-
MatchAll( "PT2H1M39S", "PT(?:(?<hours>\d+)H)?(?:(?<minutes>\d+)M)?(?:(?<seconds>\d+)S)?" ),
190-
Time( Value( hours ), Value( minutes ), Value( seconds ) )
191-
)
192-
).Value
187+
With(
188+
Match( "PT2H1M39S", "PT(?:(?<hours>\d+)H)?(?:(?<minutes>\d+)M)?(?:(?<seconds>\d+)S)?" ),
189+
Time( Value( hours ), Value( minutes ), Value( seconds ) )
190+
)
191+
// Result: 2:01 AM (as shown in a label control, use the Text function to see the seconds)
192+
193193
```
194194

195195
### Mixing date and time information

powerapps-docs/maker/canvas-apps/functions/function-left-mid-right.md

Lines changed: 4 additions & 4 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: 11/07/2015
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -29,13 +29,13 @@ If you specify a single string as an argument, the function returns the portion
2929
If the starting position is negative or beyond the end of the string, **Mid** returns *blank*. You can check the length of a string by using the **[Len](function-len.md)** function. If you request more characters than the string contains, the function returns as many characters as possible.
3030

3131
## Syntax
32-
**Left**( *String*, *NumberOfCharacters* )<br>**Mid**( *String*, *StartingPosition*, *NumberOfCharacters* )<br>**Right**( *String*, *NumberOfCharacters* )
32+
**Left**( *String*, *NumberOfCharacters* )<br>**Mid**( *String*, *StartingPosition* [, *NumberOfCharacters* ] )<br>**Right**( *String*, *NumberOfCharacters* )
3333

3434
* *String* - Required. The string to from which to extract the result.
3535
* *StartingPosition* - Required (**Mid** only). The starting position. The first character of the string is position 1.
36-
* *NumberOfCharacters* - Required (**Left** and **Right** only). The number of characters to return. If omitted for the **Mid** function, the function returns the portion from the starting position until the end of the string.
36+
* *NumberOfCharacters* - Required (**Left** and **Right** only). The number of characters to return. If omitted for the **Mid** function, the function returns the portion from the starting position until the end of the string.
3737

38-
**Left**( *SingleColumnTable*, *NumberOfCharacters* )<br>**Mid**( *SingleColumnTable*, *StartingPosition*, *NumberOfCharacters* )<br>**Right**( *SingleColumnTable*, *NumberOfCharacters* )
38+
**Left**( *SingleColumnTable*, *NumberOfCharacters* )<br>**Mid**( *SingleColumnTable*, *StartingPosition* [, *NumberOfCharacters* ] )<br>**Right**( *SingleColumnTable*, *NumberOfCharacters* )
3939

4040
* *SingleColumnTable* - Required. A single-column table of strings from which to extract the results.
4141
* *StartingPosition* - Required (**Mid** only). The starting position. The first character of the string is position 1.

powerapps-docs/maker/canvas-apps/functions/signals.md

Lines changed: 3 additions & 3 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: 05/29/2019
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -72,8 +72,8 @@ As the ___location changes, dependencies on the ___location will continuously recalcul
7272
| Property | Description |
7373
| --- | --- |
7474
| **Location.Altitude** |Returns a number that indicates the altitude, measured in feet, above sea level. |
75-
| **Location.Latitude** |Returns a number, from -90 to 90, that indicates the latitude, as measured in degrees from the equator. A positive number indicates a ___location that's north of the equator. |
76-
| **Location.Longitude** |Returns a number, from 0 to 180, that indicates the longitude, as measured in degrees west from Greenwich, England. |
75+
| **Location.Latitude** |Returns a number, from 90 to 90, that indicates the latitude, as measured in degrees from the equator. A positive number indicates a ___location that's north of the equator. |
76+
| **Location.Longitude** |Returns a number, from –180 to 180, that indicates the longitude, as measured in degrees from Greenwich, England. A positive number indicates a ___location that's east of Greenwhich. |
7777

7878
## Examples
7979
In a baseball field, a pitcher throws a phone from the pitcher's mound to a catcher at home plate. The phone is lying flat with respect to the ground, the top of the screen is pointed at the catcher, and the pitcher adds no spin. At this ___location, the phone has cellular network service that's metered but no WiFi. The **PlayBall** screen is displayed.

powerapps-docs/maker/canvas-apps/keyboard-shortcuts.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: conceptual
88
ms.custom: canvas
99
ms.reviewer:
10-
ms.date: 04/23/2019
10+
ms.date: 02/09/2020
1111
ms.author: tapanm
1212
search.audienceType:
1313
- maker
@@ -109,10 +109,30 @@ search.app:
109109
| Ctrl+I | Turn italic on or off. |
110110
| Ctrl+U | Add or remove underline. |
111111

112+
## Alternate behavior
113+
114+
| Shortcut | Action |
115+
|--|--|
116+
| Alt or Ctrl+Shift | 1. Before selecting a control, hide design elements so that you can interact with controls as the app's user would.<br>2. After initiating a resize or reposition of a control, holding down these keys overrides any snap points. |
117+
118+
Like an Excel spreadsheet, canvas apps are live and operating even when they are being edited. There is no need to change to preview mode in order to exercise your app, making the edit and test cycle much faster. But this poses a problem: how do we differentiate selecting a button control so that it can be resized from selecting a button control to exercise the logic in our app?
119+
120+
When in design mode, by default selecting an object is for editing: moving, resizing, changing properties, and otherwise configuring the object. This default can be overridden by holding down the Alt or Ctrl+Shift keys *before* initiating the selection which treats the selection as if a user of the app had done it.
121+
122+
In the following animation, a button control is first selected for editing. Adorners appear around the control and the formula bar shows the **OnSelect** property, ready to be edited. The button is then released. *With the Alt key first depressed*, the button control is again selected, but this time the **OnSelect** property is evaluated and the notification is displayed, just as if the button was selected in a running app.
123+
124+
![Animation showing the effect of starting by holding down the alt key select a button control](media/keyboard-shortcuts/alt-select.gif)
125+
126+
The Alt key can also be used *after* a control has been selected to override snap points for moving and resizing. The next animation shows the resize of a data card within an [**Edit form**](controls/control-form-detail.md) control. Initially, the resizing is restricted to specific snap points. Later, *without releasing the mouses button*, the Alt key is depressed in addition to the mouse button. The addition of the Alt key overrides the snap points and any width can be obtained with the mouse.
127+
128+
![Animation showing the effect of adding the alt key to the resize of a data card](media/keyboard-shortcuts/alt-fine-control.gif)
129+
112130
## Other
113131

114132
| Shortcut | Action |
115133
|--|--|
116134
| F1 | Open documentation. |
117135
| Shift+F10 | Open a shortcut menu in, for example, **Tree view**. |
118-
| Alt or Ctrl+Shift | Hide design elements so that you can interact with controls as if the app were running. |
136+
137+
138+
161 KB
Loading
180 KB
Loading

powerapps-docs/maker/canvas-apps/working-with-form-layout.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: conceptual
88
ms.custom: canvas
99
ms.reviewer: tapanm
10-
ms.date: 06/17/2017
10+
ms.date: 02/10/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -172,13 +172,9 @@ The result for the complete third address line:
172172
Note that many of the cards start out with dynamic formulas for their properties. For example, the Text input control that we resized and moved above had a **Width** property based on the width of its parent. When you move or resize a control, these dynamic formulas are replaced with static values. If you want, you can restore the dynamic formulas by using the formula bar.
173173

174174
## Turning off Snap to columns
175-
Sometimes you'll want finer control than the standard 12 columns can provide. For these cases, you can turn off **Snap to columns** and then position cards manually. The form will continue snapping to 12 columns, but you can also hold down the Alt key to manually position and size a card as you wish.
175+
Sometimes you'll want finer control than the standard 12 columns can provide. For these cases, you can turn off **Snap to columns** and then position cards manually. The form will continue snapping to 12 columns, but you can also hold down the Alt or Ctrl+Shift keys after starting a resize or reposition to override the snap points. For more details, see [alternate behavior keyboard shortcuts](keyboard-shortcuts.md#alternate-behavior).
176176

177-
In our example, the four components that make up the third line of the address all have exactly the same width. But this may not be the best layout, as city names are longer than state abbreviations, and the Text input box for countries/regions is short due to the length of its label.
178-
179-
To optimize this space, turn off **Snap to columns** in the right-hand pane and then hold down the Alt key while sizing and positioning these cards. Whenever you hold down the Alt key, all controls show black captions. This behavior is by design to show you control names.
180-
181-
![Positioning and sizing with the ALT key held down](./media/working-with-form-layout/delivery-address-alt-resize.png)
177+
In our example, the four components that make up the third line of the address all have exactly the same width. But this may not be the best layout, as city names are longer than state abbreviations, and the Text input box for countries/regions is short due to the length of its label. To optimize this space, turn off **Snap to columns** in the right-hand pane and then hold down the Alt or Ctrl+Shift keys after starting to size and position these cards. For
182178

183179
After careful positioning, the result has appropriate sizes for each field and even spacing horizontally between fields:
184180

@@ -189,7 +185,7 @@ In summary, what are the differences when **Snap to columns** is on versus off?
189185
| Behavior | Snap to columns On | Snap to columns Off |
190186
| --- | --- | --- |
191187
| Resize snaps to |Number of columns you select:<br>1, 2, 3, 4, 6, or 12 |12 columns |
192-
| Resize snap can be overriden |No |Yes, with Alt key |
188+
| Resize snap can be overriden |No |Yes, with Alt or Ctrl+Shift keys after starting the resize |
193189
| Cards automatically re-layout between rows (more on this later) |Yes |No |
194190

195191
## Set width and height

0 commit comments

Comments
 (0)