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/developer/component-framework/faq.yml
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
author: ghurlman
6
6
ms.service: powerapps
7
7
ms.search.keywords:
8
-
ms.date: 12/10/2020
8
+
ms.date: 06/03/2021
9
9
ms.author: grhurl
10
10
ms.reviewer: nabuthuk
11
11
title: Power Apps component framework FAQs
@@ -26,7 +26,7 @@ sections:
26
26
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.
27
27
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.
28
28
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.
30
30
31
31
- question: Where can I find some good examples of code components?
32
32
answer: |
@@ -63,9 +63,13 @@ sections:
63
63
- question: How to add commandbar, search to subgrids
64
64
answer: |
65
65
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.
66
70
67
71
additionalContent: |
68
72
## See also
69
73
70
74
[Power Apps component framework API reference](reference/index.md)<br/>
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/powerapps-cli.md
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,18 @@ Microsoft Power Apps CLI is a simple, single-stop developer command-line interfa
27
27
28
28
To get Power Apps CLI, do the following:
29
29
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.
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).
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/reference/events/form-onsave.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ In this scenario, since there are multiple async processes and both calls return
64
64
65
65
### Enable Async OnSave using app setting
66
66
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`.
68
68
69
69
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.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/reference/grids/gridentity.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ GridEntity is returned by the [GridRowData](gridrowdata.md).[getEntity](gridrowd
24
24
```JavaScript
25
25
var myRows =gridContext.getGrid().getRows();
26
26
var myRow =myRows.get(arg);
27
-
var gridEntity =myRow.getData().getEntity();
27
+
var gridEntity =myRow.data.entity;
28
28
```
29
29
30
30
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
0 commit comments