|
| 1 | +### YamlMime:FAQ |
| 2 | +metadata: |
| 3 | + title: Power App component framework FAQs |
| 4 | + description: Get answers to frequently asked questions about Power Apps component framework. |
| 5 | + author: ghurlman |
| 6 | + ms.service: powerapps |
| 7 | + ms.search.keywords: |
| 8 | + ms.date: 12/10/2020 |
| 9 | + ms.author: grhurl |
| 10 | + ms.reviewer: nabuthuk |
| 11 | +title: Power Apps component framework FAQs |
| 12 | +summary: This article provides information on frequently asked questions about Power Apps component framework. |
| 13 | +sections: |
| 14 | + - name: General |
| 15 | + questions: |
| 16 | + - question: Component changes are not reflected after the updated solution import? |
| 17 | + answer: | |
| 18 | + Update the component version (minor or patch) in the component manifest file (for example, 1.0.0 to 1.0.1). |
| 19 | + Every update in the component needs a component version bump to be reflected on the Microsoft Dataverse server. |
| 20 | + > [!NOTE] |
| 21 | + > - A new solution must be created every time if you wish to have a major version bump. Incrementing the major version number (e.g., 1.0 to 2.0) is not supported as an upgrade. |
| 22 | + > - Only three version sections are supported (i.e., MAJOR.MINOR.PATCH). These version number sections should be between 0 and 65536. |
| 23 | +
|
| 24 | + - question: What are the things to be considered from a performance perspective? |
| 25 | + answer: | |
| 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 | + 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 | + 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. |
| 30 | +
|
| 31 | + - question: Where can I find some good examples of code components? |
| 32 | + answer: | |
| 33 | + 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). |
| 34 | +
|
| 35 | + - question: How to use rich data types in code components such as Collections? |
| 36 | + answer: | |
| 37 | + 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. |
| 38 | + |
| 39 | + 1. Pass the collection into the JSON function. |
| 40 | + 2. Pass the string representation of the collection data that is returned from the JSON function into one of the component's string properties. |
| 41 | + 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. |
| 42 | + |
| 43 | + - question: How can I define multiple components in a single manifest file? |
| 44 | + answer: | |
| 45 | + 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. |
| 46 | +
|
| 47 | + - question: How can I call other components from within another component? |
| 48 | + answer: | |
| 49 | + This is not supported natively by the framework. You can use one of many third-party libraries to enable this functionality in your components. |
| 50 | +
|
| 51 | + - question: Can I bundle font resources? |
| 52 | + answer: | |
| 53 | + Currently, font resources (files with a .ttf file extension) are not supported by the framework. |
| 54 | +
|
| 55 | + - question: Can I use img resource property in canvas apps? |
| 56 | + answer: | |
| 57 | + Currently, [img](manifest-schema-reference/img.md) resources are not supported in canvas apps. |
| 58 | +
|
| 59 | + - question: TabIndex support for components in canvas apps |
| 60 | + answer: | |
| 61 | + Currently, code components do not support `tabindex` property in canvas apps. For model-driven apps the tab assignment is assigned automatically using `tabIndex = 0`, so elements are navigated in the order they appear. |
| 62 | +
|
| 63 | + |
| 64 | +additionalContent: | |
| 65 | + ## See also |
| 66 | +
|
| 67 | + [Power Apps component framework API reference](reference/index.md)<br/> |
| 68 | + [Power Apps component framework overview](overview.md) |
0 commit comments