Skip to content

Commit 669db81

Browse files
authored
Merge pull request #2295 from MicrosoftDocs/grhurl-pcf-docs-faqs
FAQ updates for PCF Docs effort
2 parents 6662d20 + 009b417 commit 669db81

File tree

4 files changed

+49
-20
lines changed

4 files changed

+49
-20
lines changed

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

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,63 @@
11
---
2-
title: "FAQ | MicrosoftDocs"
2+
title: "FAQs | MicrosoftDocs"
33
description: "Frequently asked questions about component framework"
44
manager: kvivek
55
ms.date: 10/01/2019
66
ms.service: "powerapps"
77
ms.topic: "index-page"
88
ms.assetid: 9f940264-d7d5-4930-8052-1bd582445d37
9-
ms.author: "nabuthuk"
10-
author: Nkrb
9+
ms.author: "grhurl"
10+
author: ghurlman
11+
ms.reviewer: nkrb
1112
---
1213

13-
# FAQ
14+
# FAQs
1415

1516
[!INCLUDE[cc-beta-prerelease-disclaimer](../../includes/cc-beta-prerelease-disclaimer.md)]
1617

17-
## Multiple components in single manifest file
18+
### Component changes are not reflected after the updated solution import?
1819

19-
It is not possible to define multiple components in a single manifest file.
20+
Update the component version (minor or patch) in the component manifest file (for example, 1.0.0 to 1.0.1).
21+
Every update in the component needs a component version bump to be reflected on the Common Data Service server.
2022

21-
## Calling Processes/Actions
23+
> [!NOTE]
24+
> - A new solutio must be created everytime if you wish to have a major version bump. Incrementing the major version number (eg 1.0 to 2.0) is not supported as an upgrade.
25+
> - Only three version sections are supported (i.e. MAJOR.MINOR.PATCH). These version number sections should be between 0 and 65536.
2226
23-
This is not supported. As of today, you can only call dialog boxes using the [Navigation](reference/navigation.md) method.
27+
### What are the things to be considered from a performance perspective?
2428

25-
## Calling components within another component
29+
1. If you wish to access large chunk of data items, implement [filtering](reference/filtering.md) and [paging](reference/paging.md) methods to limit how much data should be loaded.
30+
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.
31+
3. Design the component such that the user has to perform an action (such as clicking on a button) to initiate the loading of specific item's data rather than making the call for each data item.
32+
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.
2633

27-
This is not supported.
34+
### Where can I find some good examples of code components?
2835

29-
## Font Resource
36+
Lots of great examples from the community are available on the [Power Apps Community Forums](https://powerusers.microsoft.com/t5/Power-Apps-Component-Framework/Community-content-sample-components-blogs-etc-Link-to-this-page/td-p/280710).
3037

31-
Currently font resource (.tff) is not supported in Power Apps component framework.
38+
### How to use rich data types in code components such as Collections?
39+
40+
Currently, this feature is not supported. However, there is a [JSON function](https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-json) in canvas-apps that allows app makers to stringify their data.
41+
42+
1. Pass the collection into the JSON function.
43+
2. Pass the string representation of the collection data that is returned from the JSON function into one of the component's string properties.
44+
3. Use [JSON.parse](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) in the component code to convert it back into a JavaScript Object.
45+
46+
### How can I define multiple components in a single manifest file?
47+
48+
Defining multiple components in a single manifest file is not supported.
49+
50+
### How can I define behavior properties?
51+
52+
This is not supported at this time. Currently, you can only call dialog boxes using the [Navigation](reference/navigation.md) method in model-driven apps.
53+
54+
### How can I call other components from within another component?
55+
56+
This is not supported natively by the framework. You can use one of many third-party libraries to enable this functionality in your components.
57+
58+
### Can I bundle font resources?
59+
60+
Currently, font resources (files with a .ttf file extension) are not supported by the framework.
3261

3362
## Related topics
3463

powerapps-docs/developer/component-framework/limitations.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ With the release of Power Apps component framework, you can now create your own
2020

2121
> [!NOTE]
2222
> Support for shared libraries across components using library nodes in the component manifest is not yet supported. We are reviewing this and will be adding this capability in future release.
23-
4. Defining multiple components in a single manifest file is not yet supported.
24-
5. Calling out processes and actions are not supported yet. You can only call dialog boxes using the [Navigation](reference/navigation.md) method.
25-
6. Calling one component from another code component is not yet supported.
26-
7. Currently font resource (.tff) is not yet supported.
2723
2824
## Related topics
2925

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
href: issues-and-workarounds.md
3535
- name: Limitations
3636
href: limitations.md
37+
- name: FAQs
38+
href: faq.md
3739
- name: Sample components
3840
items:
3941
- name: How to use the sample components?

powerapps-docs/developer/component-framework/use-sample-components.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ Follow the steps below to import and try the sample components in your model-dri
2929
1. Navigate to the folder on your computer where you have downloaded the sample components, and extract the .zip file.
3030
1. Open Developer Command Prompt for Visual Studio 2017 and navigate to the sample component folder in the extracted folder that you want to see it in runtime. For example, navigate to the \<extracted_folder>/TS_IncrementComponent folder.
3131
1. Run the following command to get all the required dependencies:
32-
```
32+
```CLI
3333
npm install
3434
```
3535
1. Create a new folder using the command `mkdir <folder name>` inside the sample component folder and navigate into the folder using the command `cd <folder name>`.
3636
1. Create a new solution project inside the folder using the following command:
37-
```
37+
```CLI
3838
pac solution init --publisher-name <Name of the publisher> --publisher-prefix <Publisher prefix>
3939
```
4040
1. After the new solution project is created, refer to the ___location where the sample component is located. You can add the reference using the following command:
41-
```
41+
```CLI
4242
pac solution add-reference --path <Path to the root of the sample component>
4343
```
4444
1. To generate a zip file from your solution project, you need to `cd` into your solution project directory and build the project using the following command:
45-
```msbuild /t:restore
45+
46+
```CLI
47+
msbuild /t:restore
4648
```
4749
1. Again, run the command `msbuild`.
4850
1. The generated solution zip file will be available at `Solution\bin\debug` folder. Manually [import the solution](/powerapps/maker/common-data-service/import-update-export-solutions) into your Common Data Service environment using the web portal once the zip file is ready. Alternatively, to import the solution using Power Apps CLI commands, see the [Connecting to your environment](https://docs.microsoft.com/powerapps/developer/component-framework/import-custom-controls#connecting-to-your-environment) and [Deployment](https://docs.microsoft.com/powerapps/developer/component-framework/import-custom-controls#deploying-code-components) sections.

0 commit comments

Comments
 (0)