Skip to content

Commit 80120b5

Browse files
authored
Live publish for 07 February 2020.
2 parents db80058 + 468b012 commit 80120b5

File tree

10 files changed

+46
-14
lines changed

10 files changed

+46
-14
lines changed

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

Lines changed: 15 additions & 1 deletion
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/19/2019
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -56,6 +56,20 @@ Because all data types support *blank*, the **Boolean** and **Two option** data
5656

5757
All four of these data types are based on a [Unicode](https://en.wikipedia.org/wiki/Unicode) text string.
5858

59+
### Embedded text
60+
61+
Embedded text strings in a formula are enclosed in double quotation marks. Use two double quotes together to represent a single double quote in the text string. For example, using the following formula in the **OnSelect** property of a [**Button**](../controls/control-button.md) control:
62+
63+
```powerapps-dot
64+
Notify( "Jane said ""Hello, World!""" )
65+
```
66+
67+
results in a banner when the button is pressed, where the first and last double quotes are omitted (as they delimit the text string) and the repeated double quotes around **Hello, World!** are replaced with a single double quote:
68+
69+
![pop up notification with the message Jane said "Hello, World"](media/data-types/literal-string.png)
70+
71+
Single quotation marks are not used for [identifier names](operators.md#identifier-names) that contain special characters and have no significance within a text string.
72+
5973
### Image and Media resources
6074

6175
Through the **File** menu, you can add image, video, and audio files as app resources. The name of the imported file becomes the resource name in the app. In this graphic, the Northwind Traders logo, which is named **nwindlogo**, has been added to an app:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ At this time, you can use lookup columns only with SharePoint and Common Data Se
8686

8787
![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)
8888

89-
1. On the **Home** tab, select **New screen**, and then select **Blank**.
89+
1. For illustration purposes, we can view the complete table returned by the **Choices** function in a **Data table** control. On the **Home** tab, select **New screen**, and then select **Blank**.
9090

9191
1. On the **Insert** tab, select **Data table**.
9292

powerapps-docs/maker/canvas-apps/functions/function-encode-decode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The return value from these functions is the encoded or decoded string. This fun
4040
If you show an RSS feed in a text gallery and then set the **[Text](../controls/properties-core.md)** property of a label in that gallery to **ThisItem.description**, the label might show raw HTML or XML code as in this example:
4141

4242
```html
43-
<p>We have done an unusually&nbsp;&quot;deep&quot; globalization and localization.<p>
43+
<p>We have done an unusually&nbsp;&quot;deep&quot; globalization and localization.</p>
4444
```
4545

4646
If you set the **[Text](../controls/properties-core.md)** property of the label to **PlainText(ThisItem.description)**, the text appears as in this example:

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

Lines changed: 1 addition & 2 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: 08/15/2019
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -177,7 +177,6 @@ The user types **Hello world** into **TextInput1**.
177177
| `IsMatch( "111-11-1111", "\d{3}-\d{2}-\d{4}" )` | Matches a United States Social Security number. Validates the format, type, and length of the supplied input field. The string to match must consist of three numeric characters followed by a dash, then two numeric characters followed by a dash, and then four numeric characters. | **true** |
178178
| `IsMatch( "111-111-111", "\d{3}-\d{2}-\d{4}" )` | Same as the previous example, but one of the hyphens is out of place in the input. | **false** |
179179
| `IsMatch( "AStrongPasswordNot", "(?!^[0-9]\*$)(?!^[a-zA-Z]\*$)([a-zA-Z0-9]{8,10})" )` | Validates a strong password, which must contain eight, nine, or 10 characters, in addition to at least one digit and at least one alphabetic character. The string must not contain special characters. | **false** |
180-
| `IsMatch( "<https://microsoft.com>", "(ht&#124;f)tp(s?)\:\/\/\[0-9a-zA-Z\]([-.\w]\*[0-9a-zA-Z])\*(:(0-9)\*)\*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]\*)?" )` | Validates an http, https, or ftp URL. | **true** |
181180

182181
## Match and MatchAll examples
183182

powerapps-docs/maker/canvas-apps/functions/function-update-updateif.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ In these examples, you'll replace or modify records in a data source that's name
5959
| Formula | Description | Result |
6060
| --- | --- | --- |
6161
| **Update(&nbsp;IceCream,<br>First(&nbsp;Filter(&nbsp;IceCream,&nbsp;Flavor="Chocolate"&nbsp;)&nbsp;), {&nbsp;ID:&nbsp;1,&nbsp;Flavor:&nbsp;"Mint&nbsp;Chocolate",&nbsp;Quantity:150&nbsp;} )** |Replaces a record from the data source. |<style> img { max-width: none } </style> ![](media/function-update-updateif/icecream-mint.png)<br><br>The **IceCream** data source has been modified. |
62-
| **UpdateIf(&nbsp;IceCream, Quantity > 175, {&nbsp;Quantity:&nbsp;Quantity&nbsp;+&nbsp;10&nbsp;} )** |Modifies records that have a **Quantity** that is greater than **150**. The **Quantity** field is incremented by 10, and no other fields are modified. |![](media/function-update-updateif/icecream-mint-plus10.png)<br><br>The **IceCream** data source has been modified. |
62+
| **UpdateIf(&nbsp;IceCream, Quantity > 175, {&nbsp;Quantity:&nbsp;Quantity&nbsp;+&nbsp;10&nbsp;} )** |Modifies records that have a **Quantity** that is greater than **175**. The **Quantity** field is incremented by 10, and no other fields are modified. |![](media/function-update-updateif/icecream-mint-plus10.png)<br><br>The **IceCream** data source has been modified. |
6363
| **Update(&nbsp;IceCream,<br>First(&nbsp;Filter(&nbsp;IceCream, Flavor="Strawberry"&nbsp;)&nbsp;),<br>{&nbsp;ID:&nbsp;3, Flavor:&nbsp;"Strawberry Swirl"} )** |Replaces a record from the data source. The **Quantity** property hasn't been supplied in the replacement record, so that property will be *blank* in the result. |![](media/function-update-updateif/icecream-mint-swirl.png)<br><br>The **IceCream** data source has been modified. |
6464
| **UpdateIf(&nbsp;IceCream, true, {&nbsp;Quantity:&nbsp;0&nbsp;} )** |Sets the value of the **Quantity** property for all records in the data source to 0. |![ ](./media/function-update-updateif/icecream-mint-zero.png)<br> <br>The **IceCream** data source has been modified. |
6565

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

Lines changed: 2 additions & 2 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/06/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -49,5 +49,5 @@ The user running these formulas is located in the United States and has selected
4949
| **Value( "123,456", "es-ES" )** |"es-ES" is the language tag for Spanish in Spain. In Spain, a comma is the decimal separator. |123.456 |
5050
| **Value( "12.34%" )** |The percentage sign at the end of the string indicates that this is a percentage. |0.1234 |
5151
| **Value( "$ 12.34" )** |The currency symbol for the current language is ignored. |12.34 |
52-
| **Value( "24e3" )** |Scientific notation for 12 x 10<sup>3</sup>. |24000 |
52+
| **Value( "24e3" )** |Scientific notation for 24 x 10<sup>3</sup>. |24000 |
5353

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

Lines changed: 2 additions & 2 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: 08/15/2019
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -106,7 +106,7 @@ This example adds a record to the **Order** table in SQL Server. It then uses t
106106

107107
```powerapps-dot
108108
With(
109-
Match( "PT2H1M39S", "PT(?:<hours>\d+)H)?(?:(?<minutes>\d+)M)?(?:(?<seconds>\d+)S)?" ),
109+
Match( "PT2H1M39S", "PT(?:(?<hours>\d+)H)?(?:(?<minutes>\d+)M)?(?:(?<seconds>\d+)S)?" ),
110110
Time( Value( hours ), Value( minutes ), Value( seconds ) )
111111
)
112112
// Result: 2:01 AM (as shown in a label control, use the Text function to see the seconds)
Loading

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

Lines changed: 21 additions & 2 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: 07/24/2017
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -51,6 +51,25 @@ Some of these operators are dependent on the language of the author. See [Globa
5151
| **Parent** | [Parent operator](#parent-operator) | **Parent.Fill** | Access to properties of a control container |
5252
| **ThisItem** | [ThisItem operator](#thisitem-operator) | **ThisItem.FirstName** | Access to fields of a Gallery or form control |
5353

54+
## Identifier names
55+
56+
The names of variables, data sources, columns, and other objects can contain any [Unicode](https://en.wikipedia.org/wiki/Unicode).
57+
58+
Use single quotes around a name that contains a space or other special character. Use two single quotes together to represent one single quote in the name. Names that do not contain special characters do not require single quotes.
59+
60+
Here are some example column names you might encounter in a table, and how they are represented in a formula:
61+
62+
| Column name in a database | Column reference in a formula |
63+
|-----------------------------|-------------------------------|
64+
| SimpleName | ```SimpleName``` |
65+
| NameWith123Numbers | ```NameWith123Numbers``` |
66+
| Name with spaces | ```'Name with spaces'``` |
67+
| Name with "double" quotes | ```'Name with "double" quotes'``` |
68+
| Name with 'single' quotes | ```'Name with ''single'' quotes'``` |
69+
| Name with an @ at sign | ```'Name with an @ at sign'``` |
70+
71+
Double quotes are used to [designate text strings](data-types.md#embedded-text).
72+
5473
## in and exactin operators
5574
You can use the **[in](operators.md#in-and-exactin-operators)** and **[exactin](operators.md#in-and-exactin-operators)** operators to find a string in a [data source](../working-with-data-sources.md), such as a collection or an imported table. The **[in](operators.md#in-and-exactin-operators)** operator identifies matches regardless of case, and the **[exactin](operators.md#in-and-exactin-operators)** operator identifies matches only if they're capitalized the same way. Here's an example:
5675

@@ -67,7 +86,7 @@ You can use the **[in](operators.md#in-and-exactin-operators)** and **[exactin](
6786
## ThisItem operator
6887
You can show data in **[Gallery](../controls/control-gallery.md)**, **[Edit form](../controls/control-form-detail.md)**, or **[Display form](../controls/control-form-detail.md)** controls by binding it to a table or a collection. These controls are a container for other cards and controls. Each card or control within the container can access the bound data through the **[ThisItem](operators.md#thisitem-operator)** operator.
6988

70-
You use the **[ThisItem](operators.md#thisitem-operator)** operator to specify the [column](../working-with-tables.md#columns) of data that each card or control within the outer control. For example, that operator in the product gallery for [Show images and text in a gallery](../show-images-text-gallery-sort-filter.md) specified that the image control showed the product design, the upper label showed the product name, and the lower label showed the number of units in stock.
89+
Use the **[ThisItem](operators.md#thisitem-operator)** operator to specify the [column](../working-with-tables.md#columns) of data to be displayed in each card or control within the outer control. For example, that operator in the product gallery for [Show images and text in a gallery](../show-images-text-gallery-sort-filter.md) specified that the image control showed the product design, the upper label showed the product name, and the lower label showed the number of units in stock.
7190

7291
For nested galleries, **[ThisItem](operators.md#thisitem-operator)** refers to the innermost gallery's items. Assuming the row fields in the inner and outer galleries don't conflict, you can also use the unqualified field (column) names directly. This approach enables rules in an inner gallery to refer to an outer gallery's items.
7392

powerapps-docs/maker/canvas-apps/working-with-variables.md

Lines changed: 2 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: tapanm
10-
ms.date: 02/28/2019
10+
ms.date: 02/07/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -180,7 +180,7 @@ Then you can simply use **Radius** anywhere that you can use a number, and it wi
180180

181181
`Pi() * Power( Radius, 2 )`
182182

183-
If you give a context variable the same name as a global variable or a collection, the context variable takes precedence. However, you can still reference the global variable or collection if you use the [disambiguation operator](functions/operators.md#disambiguation-operator) **@[Radius]**.
183+
If you give a context variable the same name as a global variable or a collection, the context variable takes precedence. However, you can still reference the global variable or collection if you use the [disambiguation operator](functions/operators.md#disambiguation-operator) **[@Radius]**.
184184

185185
## Use a context variable
186186

0 commit comments

Comments
 (0)