Skip to content

Commit 7981486

Browse files
authored
Merge pull request #3748 from MicrosoftDocs/master
updates
2 parents c2bfdc5 + 63a543e commit 7981486

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+304
-49
lines changed

.acrolinx-config.edn

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{:allowed-branchname-matches ["^master$"]
22
:allowed-filename-matches ["powerapps-docs"]
3-
:targets
4-
{
5-
:scores
6-
{
7-
:qualityscore 80
8-
}
9-
}
103
:guidance-profile "dc59e3ef-24fd-46d7-9156-0491aaae6bef" ;; Profile ID for "BAG-specific"
114
:acrolinx-check-settings
125
{
47.8 KB
Loading
55.5 KB
Loading
-1.72 KB
Loading
27.4 KB
Loading

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ search.app:
1515
---
1616
# Controls (Client API reference)
1717

18-
19-
2018
A control represents an HTML element present on the form. Some controls are bound to a specific attribute, whereas others may represent unbound controls such as an IFRAME, Web resource, or a sub grid that has been added to the form.
2119

2220
The **control** object provides methods to change the presentation or behavior of a control and identify the corresponding attribute. You access controls using one of the following collections:
@@ -330,6 +328,13 @@ The Sliverlight web resource has these additional methods:
330328
</tr>
331329
</table>
332330

331+
> [!TIP]
332+
> If you want to modify all the controls bound to an attribute on a form, use the controls collection inside the attribute type. For example, to add notification to each control bound to the `name` attribute, you can do the following:
333+
> ```JavaScript
334+
> const notification = { messages: ['Sample Notification on Name Controls'], notificationLevel: 'RECOMMENDATION', uniqueId: 'my_unique_id'};
335+
> formContext.getAttribute("name").controls.forEach(control => control.addNotification(notification));
336+
> ```
337+
333338
334339
### Related topics
335340

powerapps-docs/developer/model-driven-apps/clientapi/reference/controls/getControl.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ When the `arg` value is not provided, it returns an array of all the controls on
3737

3838
**Description**: Object if you use the method with parameter; object collection if you use the method without any parameters.
3939

40+
> [!TIP]
41+
> If you want to modify the all the controls bound to an attribute on a form, use the controls collection inside the attribute type.
42+
For example, to add notification to each control bound to the `name` attribute, you can do the following:
43+
> ```JavaScript
44+
> const notification = {
45+
> messages: ['Sample Notification on Name Controls'],
46+
> notificationLevel: 'RECOMMENDATION',
47+
> uniqueId: 'my_unique_id'};
48+
> formContext.getAttribute("name").controls.forEach(control => control.addNotification(notification));
49+
> ```
4050
4151
4252
### Related topics

powerapps-docs/developer/model-driven-apps/clientapi/reference/controls/setVisible.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ search.app:
1616
---
1717
# setVisible (Client API reference)
1818

19-
20-
2119
Sets a value that indicates whether the control is visible.
2220

2321
## Control types supported
@@ -34,6 +32,9 @@ All
3432
|--|--|--|--|
3533
|bool|Boolean|Yes|Specify **true** to show the control; **false** to hide the control.|
3634

35+
>[!NOTE]
36+
> If a control is set to false and is in a section that is hidden and if you set the control to true, the section will be visible.
37+
3738
### Related topics
3839

3940
[getVisible](getVisible.md)

powerapps-docs/developer/model-driven-apps/define-ribbon-actions.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ title: "Define ribbon actions (model-driven apps) | Microsoft Docs" # Intent and
33
description: "Learn about defining the actions to be performed by a command bar or ribbon control in a <CommandDefinition> element together with rules that control whether the control is enabled or visible in the ribbon." # 115-145 characters including spaces. This abstract displays in the search result."
44
keywords: ""
55
ms.date: 05/07/2020
6-
ms.service:
7-
- PowerApps
6+
ms.service: powerapps
87
ms.topic: article
98
ms.assetid: fbb7ff68-e4be-d8c2-069f-6a4a69665b56
109
author: Nkrb # GitHub ID
@@ -20,8 +19,6 @@ search.app:
2019

2120
# Define ribbon actions
2221

23-
<!-- https://docs.microsoft.com/dynamics365/customer-engagement/developer/customize-dev/define-ribbon-actions -->
24-
2522
Define the actions to be performed by a command bar or ribbon control in a `<CommandDefinition>` element together with rules that control whether the control is enabled or visible in the ribbon.
2623

2724
A Ribbon control can perform two types actions and may include multiple actions:

powerapps-docs/developer/model-driven-apps/define-ribbon-enable-rules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ ms.date: 05/07/2020
66
ms.service: powerapps
77
ms.topic: article
88
ms.assetid: 201f5db9-be65-7c3b-8202-822d78338bd6
9-
author: HaoZhou
10-
ms.author: hazhouMSFT
11-
manager: annbe
9+
author: Nkrb
10+
ms.author: nabuthuk
11+
manager: kvivek
1212
ms.reviewer: kvivek
1313
search.audienceType:
1414
- developer

0 commit comments

Comments
 (0)