Skip to content

Commit e53c6c8

Browse files
authored
Live publish
2 parents 41d578c + b0d874e commit e53c6c8

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

powerapps-docs/developer/component-framework/faq.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
author: ghurlman
66
ms.service: powerapps
77
ms.search.keywords:
8-
ms.date: 12/10/2020
8+
ms.date: 06/03/2021
99
ms.author: grhurl
1010
ms.reviewer: nabuthuk
1111
title: Power Apps component framework FAQs
@@ -26,7 +26,7 @@ sections:
2626
1. If you wish to access a large chunk of data items, implement [filtering](reference/filtering.md) and [paging](reference/paging.md) methods to limit how much data should be loaded.
2727
2. Batch your network calls, and make any network calls asynchronous. Design the component in such a way that all the required information is provided with a single call.
2828
3. Design the component such that the user has to perform an action (such as clicking on a button) to initiate the loading of a specific item's data rather than making the call for each data item.
29-
4. Ensure that you clean up the resources using the [destroy](reference/control/destroy.md) function. Open network calls, connections, and event handlers need to be cleaned up to increase the performance.
29+
4. Ensure that you clean up the resources using the [destroy](reference/control/destroy.md) function. Open network calls, connections, event handlers, and references to DOM nodes need to be cleaned up to increase the performance.
3030
3131
- question: Where can I find some good examples of code components?
3232
answer: |
@@ -63,9 +63,13 @@ sections:
6363
- question: How to add commandbar, search to subgrids
6464
answer: |
6565
To add commandbar, search to a subgrid for model-driven apps, you need to specify the [cds-data-set-options](manifest-schema-reference/data-set.md).
66+
67+
- question: Can I access form context like I can in model-driven apps event handlers?
68+
answer: |
69+
Accessing form context directly in a control is not supported. Code components are expected to work across various products like model-driven apps, canvas apps, dashboards, and hence they cannot have dependency on the form context. A work around is to make the code component bound to a column and add an `OnChange` event handler to that column. The code component can update the column value, and the `OnChange` event handler can access the form context. Column not bound to a table could be used, or a column bound to a table with `submitMode` set to `never` can be used. We will add support for the custom events in future which can be used for communicating changes outside of a control without adding a column configuration.
6670
6771
additionalContent: |
6872
## See also
6973
7074
[Power Apps component framework API reference](reference/index.md)<br/>
71-
[Power Apps component framework overview](overview.md)
75+
[Power Apps component framework overview](overview.md)

powerapps-docs/developer/data-platform/powerapps-cli.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,18 @@ Microsoft Power Apps CLI is a simple, single-stop developer command-line interfa
2727

2828
To get Power Apps CLI, do the following:
2929

30-
1. Install [Npm](https://www.npmjs.com/get-npm) (comes with Node.js) or [Node.js](https://nodejs.org/en/) (comes with npm). We recommend LTS (Long Term Support) version 10.15.3 or higher.
31-
32-
1. Install [.NET Framework 4.6.2 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net462).
33-
34-
1. If you don’t already have Visual Studio 2017 or later, follow one of these options:
35-
- Option 1: Install [Visual Studio 2017](/visualstudio/install/install-visual-studio?view=vs-2017) or later.
36-
- Option 2: Install [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/current) and then install [Visual Studio Code](https://code.visualstudio.com/Download).
37-
3830
1. Install [Power Apps CLI](https://aka.ms/PowerAppsCLI).
39-
31+
1. You can also install the [Power Platform Extension for Visual Studio Code](https://aka.ms/ppcvscode) which also installs the Power Apps CLI.
4032
1. To take advantage of all the latest capabilities, update the Power Apps CLI tooling to the latest version using this command:
4133

4234
```CLI
4335
pac install latest
4436
```
4537
46-
> [!NOTE]
38+
39+
> [!IMPORTANT]
4740
> Currently, Power Apps CLI is supported only on Windows 10.
41+
> Power Platform Extension for Visual Studio Code is in public preview and works on both Windows 10 and macOS.
4842
4943
## Common commands
5044

powerapps-docs/developer/model-driven-apps/clientapi/reference/events/form-onsave.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ In this scenario, since there are multiple async processes and both calls return
6464
6565
### Enable Async OnSave using app setting
6666
67-
An app setting is a platform component that allows you to override a setting on an app.
67+
An app setting is a platform component that allows you to override a setting on an app. App setting should have a unique name and must be in the format `solutionpublisherprefix_appname_settingname`.
6868
6969
To enable the async `OnSave` event handlers for a specific app, add the below XML in the `customization.xml` file. This should be added in the existing AppModule node in your `customization.xml` file.
7070

powerapps-docs/developer/model-driven-apps/clientapi/reference/grids/gridentity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GridEntity is returned by the [GridRowData](gridrowdata.md).[getEntity](gridrowd
2424
```JavaScript
2525
var myRows = gridContext.getGrid().getRows();
2626
var myRow = myRows.get(arg);
27-
var gridEntity = myRow.getData().getEntity();
27+
var gridEntity = myRow.data.entity;
2828
```
2929

3030
GridEntity also supports the **columns** collection that provides methods of working with a collection of columns for a table in the editable grid. Each column ([GridAttribute](gridattribute.md)) represents the data in the cell of an editable grid, and contains a reference to all the cells associated with the column. See [Collections (Client API reference)](../collections.md) for information on the methods available to access data in a collection.
@@ -49,4 +49,4 @@ GridEntity also supports the **columns** collection that provides methods of wor
4949

5050

5151

52-
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]
52+
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]

powerapps-docs/developer/model-driven-apps/clientapi/reference/grids/gridrowdata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GridRowData also provides methods for retrieving information specific to a recor
2626
```JavaScript
2727
var myRows = gridContext.getGrid().getRows();
2828
var myRow = myRows.get(arg);
29-
var gridRowData = myRow.getData();
29+
var gridRowData = myRow.data;
3030
```
3131

3232
## Properties
@@ -45,4 +45,4 @@ var gridRowData = myRow.getData();
4545

4646

4747

48-
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]
48+
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]

0 commit comments

Comments
 (0)