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/reference/webapi/retrieverecord.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Model-driven apps
56
56
</ul>
57
57
<p>You specify the query options starting with <code>?</code>. You can also specify multiple query options by using <code>&</code> to separate the query options. For example:</p>
Copy file name to clipboardExpand all lines: powerapps-docs/developer/component-framework/use-sample-components.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,23 @@ All the sample components listed under this section are available to download fr
19
19
The individual sample component topics under this section provide you an overview of the sample component, it's visual appearance, and the manifest, code, and resources for the sample component.
20
20
21
21
## Before you can try the sample components
22
+
22
23
To try the sample components, you must first:
24
+
23
25
-[Download](https://go.microsoft.com/fwlink/?linkid=2088525) the sample components so that you have a local copy.
Follow the steps below to import and try the sample components in your model-driven or canvas app:
28
31
29
32
1. Navigate to the folder on your computer where you have downloaded the sample components, and extract the .zip file.
30
-
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.
33
+
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.
31
34
1. Run the following command to get all the required dependencies:
32
35
```CLI
33
36
npm install
34
37
```
35
-
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>`.
38
+
1. Create a new folder using the command `mkdir <folder name>` inside the sample component folder that has the `pcfproj` file and navigate into the folder using the command `cd <folder name>`.
36
39
1. Create a new solution project inside the folder using the following command:
37
40
```CLI
38
41
pac solution init --publisher-name <Name of the publisher> --publisher-prefix <Publisher prefix>
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/component-behavior.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Do one or more tasks in canvas app when a component-based action oc
4
4
author: yifwang
5
5
ms.service: powerapps
6
6
ms.topic: article
7
-
ms.date: 02/20/2020
7
+
ms.date: 04/24/2020
8
8
ms.author: yifwang
9
9
ms.reviewer: tapanm
10
10
search.audienceType:
@@ -20,43 +20,43 @@ search.app:
20
20
21
21
Specify one or more [behavior formulas](working-with-formulas-in-depth.md) that run when an event triggers a change in component instances.
22
22
23
-
For example, set a component's **OnReset** property to one or more formulas that do initialization, clear input. And reset values when the **Reset** function runs on the component instances.
23
+
For example, set a component's **OnReset** property to one or more formulas that do initialization and clear input. Reset values when the **Reset** function runs on the component instances.
24
24
25
25
## OnReset
26
26
27
27
With a component master selected, select **OnReset** in the drop-down list of properties (on the left side of the formula bar), and then enter one or more formulas.
To test **OnReset**, configure a control to reset the component. For example, set the **OnSelect** property of a button to this formula: **Reset**(*ComponentName*).
In this time picker component, two variables are used to display the time _selectedHour and _selectedMinute. When the picker gets reset, these variables should be reset to a default value, say 12: 12. The OnReset property for the component has the following formula: **Set(_selectedHour,12); Set(_selectedMinute,12)**
40
40
41
41
To trigger reset, go to a screen and insert an instance of the component. Add a button and configure OnSelect of the button to call **Reset(TimerComponent_instance)** to trigger OnReset.
Besides resetting a component instance from the outside of the component, there's another method to trigger the OnReset from the inside. "**Raise OnReset when value changes**" is an option when creating a custom input property. And it allows the value changes of this property to trigger OnReset of the component. This method is designed to set and reset default value easily.
48
+
Besides resetting a component instance from outside of the component, there's another method to trigger the OnReset from the inside. "**Raise OnReset when value changes**" is an option when creating a custom input property. It allows the value changes of this property to trigger OnReset of the component. This method is designed to set and reset the default value easily.
Example above shows reviewing order numbers and updating the numbers. The numeric up and down component is used to increase or decrease number of orders. When selecting the gallery on the left, the default number of numeric up and down component is reset to display the order number of selected tool. "**Raise OnReset when value changes**" made it possible to reset the default value when the input changes.
57
+
The example above shows reviewing order numbers and updating the numbers. The numeric up and down component is used to increase or decrease number of orders. When selecting the gallery on the left, the default number of the numeric up and down component is reset to display the order number of the selected tool. **Raise OnReset when value changes** made it possible to reset the default value when the input changes.
58
58
59
-
To do so, check "**Raise OnReset when value changes**" of the default input property. **OnReset** of the component is set to **Set(_numericValue,'Numeric up down'.DefaultValue)**. _numericValue is the variable to store the value of the current order value. And set the **Default** of the text input control to **If(IsBlank(_numericValue), 'Numeric up down'.DefaultValue, _numericValue)**.
59
+
To do so, check **Raise OnReset when value changes** of the default input property. **OnReset** of the component is set to **Set(_numericValue,'Numeric up down'.DefaultValue)**. _numericValue is the variable to store the value of the current order value. Set the **Default** of the text input control to **If(IsBlank(_numericValue), 'Numeric up down'.DefaultValue, _numericValue)**.
0 commit comments