Skip to content

Commit 9052d80

Browse files
committed
Updated per github pull request 2110
1 parent 3bbe4d9 commit 9052d80

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

powerapps-docs/maker/model-driven-apps/embedded-canvas-app-guidelines.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Guidelines and troubleshooting when working with embedded canvas apps | MicrosoftDocs"
33
description: Understand the recommended ways to work with embedded canvas apps in Power Apps
44
ms.custom: ""
5-
ms.date: 04/02/2021
5+
ms.date: 06/17/2021
66
ms.reviewer: ""
77
ms.service: powerapps
88
ms.suite: ""
@@ -61,6 +61,11 @@ This topic provides guidelines on working with embedded canvas apps as well as h
6161
3. In the list of controls select the default control and then select the **Web** option.
6262
4. Select **OK**.
6363

64+
## Saving data in an embedded canvas app
65+
- A save event made from a model-driven app, such as selecting the Save button on the main form command bar, doesn’t save changes made in the embedded canvas app.
66+
- To save changes made in an embedded canvas app, use the Dataverse connector.
67+
- The ModelDrivenFormIntegration control OnDataRefresh action should only be used to refresh data within the embedded canvas app. We don’t recommend that you use the OnDataRefresh action to save changes within the embedded canvas app.
68+
6469
## Known issues and limitations with embedded canvas apps
6570

6671
### Limitations

powerapps-docs/maker/model-driven-apps/embedded-canvas-app-properties-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "ModelDrivenFormIntegration control properties and actions | MicrosoftDocs"
33
description: Learn about ModelDrivenFormIntegration control properties and actions
44
ms.custom: ""
5-
ms.date: 06/25/2019
5+
ms.date: 06/17/2021
66
ms.reviewer: ""
77
ms.service: powerapps
88
ms.suite: ""
@@ -35,7 +35,7 @@ This topic explains the properties and actions available on the ModelDrivenFormI
3535
|:--------------|:-------------------------|
3636
|**DataSource** | Should be set to the data source connected to the parent table of the host model-driven form. <br />Automatically set when [embedding a new canvas app](embedded-canvas-app-add-classic-designer.md). |
3737
|**Item** | Read-only property that enables the embedded canvas app to access the row from the host model-driven form. <br />As an example, to get the value of a column with the name accountnumber and display name Account Number, you can use ModelDrivenFormIntegration.Item.accountnumber or ModelDrivenFormIntegration.Item.'Account Number'. |
38-
|**OnDataRefresh** | The formula in this property is evaluated when the host model-driven form saves data. <br />Use it to refresh the data source connected to the parent table of the host model-driven form and to perform other actions like setting or updating variables. <br /> As an example, setting it to the formula below will refresh the Accounts data source and set a variable named CurrentAccountNumber to the value of the Account Number column of the current row. <br /> Refresh(Accounts); Set(CurrentAccountNumber, ModelDrivenFormIntegration.Item.'Account Number') |
38+
|**OnDataRefresh** | The formula in this property is evaluated when the host model-driven form saves data. <br />Use it to refresh the data source connected to the parent table of the host model-driven form and to perform other actions like setting or updating variables. <br /> As an example, setting it to the formula below will refresh the Accounts data source and set a variable named CurrentAccountNumber to the value of the Account Number column of the current row. <br /> Refresh(Accounts); Set(CurrentAccountNumber, ModelDrivenFormIntegration.Item.'Account Number') <br /> The OnDataRefresh action should only be used to refresh data within the embedded canvas app. We don’t recommend that you use the OnDataRefresh action to save changes within the embedded canvas app. More information: [Saving data in an embedded canvas app](embedded-canvas-app-guidelines.md) |
3939
|**RefreshForm** | Refreshes the data on the host model-driven form. <br />See [Perform predefined actions on the host form](embedded-canvas-app-actions.md#refreshformshowprompt) for details. |
4040
|**SaveForm** | Saves the data on the host model-driven form. <br />See [Perform predefined actions on the host form](embedded-canvas-app-actions.md#saveform) for details. |
4141
|**NavigateToMainForm** | Navigates the host model-driven form to a main form and displays the specified row. <br />See [Perform predefined actions on the host form](embedded-canvas-app-actions.md#navigatetomainformentityname-mainformname-recordid) for details. |

0 commit comments

Comments
 (0)