Skip to content

Commit ae63c2f

Browse files
authored
Merge pull request MicrosoftDocs#4369 from MicrosoftDocs/udag-updated
Udag updated
2 parents f38cec8 + c0a9525 commit ae63c2f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/formContext-ui/refreshRibbon.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ search.app:
3232

3333
## Remarks
3434

35-
This function is typically used when a ribbon `<EnableRule>` (RibbonDiffXml) depends on a value in the form. After your code changes a value that is used by a rule, use this method to force the ribbon to re-evaluate the data in the form so that the rule can be applied.
35+
This function is used when a ribbon action `JavaScriptFunction` (RibbonDiffXml) changes the data in the form. For example, changing of state of the record via a ribbon action. After your code changes the data that is used by a rule, use this method to force the ribbon to reevaluate the data in the form so that the rule can be reapplied.
3636

37-
### Related topics
37+
## Guidance
38+
39+
For optimal performance of your form loads, you should not use this function in `EnableRule` (RibbonDiffXml) or `onLoad` (FormXml). The form load itself triggers rules evaluation of all the ribbon actions. In case, if you want to control the visibility of a ribbon action, use promises and asynchronous pattern in `EnableRule`.
3840

39-
[formContext.ui](../formContext-ui.md)
4041

42+
### Related topics
43+
44+
[formContext.ui](../formContext-ui.md)
4145
[formContext](../../clientapi-form-context.md)
4246

4347

4448

45-
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]
49+
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]

powerapps-docs/maker/data-platform/use-powerapps-checker.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ Here's a summary of each column in the report.
165165
| Web Resources | [web-avoid-eval](https://go.microsoft.com/fwlink/?LinkID=398563&error=web-avoid-eval&client=PAChecker) | Don't use the 'eval' function or its functional equivalents. |
166166
| Web Resources | [web-remove-alert](https://go.microsoft.com/fwlink/?LinkID=398563&error=web-remove-alert&client=PAChecker) | Don't use the 'alert' function or its functional equivalents. |
167167
| Web Resources | [web-remove-console](https://go.microsoft.com/fwlink/?LinkID=398563&error=web-remove-console&client=PAChecker) | Avoid using methods on console. |
168-
| Canvas App | [app-formula-issues-high](../canvas-apps/formula-reference.md?client=PAChecker&error=app-formula-issues-high) | Refer to Power Apps formula references for additional details. |
169-
| Canvas App | [app-formula-issues-medium](../canvas-apps/formula-reference.md?client=PAChecker&error=app-formula-issues-medium) | Refer to Power Apps formula references for additional details. |
170-
| Canvas App | [app-formula-issues-low](../canvas-apps/formula-reference.md?client=PAChecker&error=app-formula-issues-low) | Refer to Power Apps formula references for additional details. |
171-
| Canvas App | [app-use-delayoutput-text-input](../canvas-apps/performance-tips.md?client=PAChecker&error=app-use-delayoutput-text-input) | Use delayed load in some scenarios to improve performance. |
172-
| Canvas App | [app-reduce-screen-controls](../canvas-apps/performance-tips.md?client=PAChecker&error=app-reduce-screen-controls) | Limit the number of app controls for improved performance. |
168+
| Web Resources | [web-avoid-ui-refreshribbon](https://go.microsoft.com/fwlink/?linkid=2157641&error=web-remove-console&client=PAChecker) | Avoid using refreshRibbon in form onload and EnableRule. |
169+
| Canvas App | [app-formula-issues-high](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-formula-issues-high&client=PAChecker) | Refer to Power Apps formula references for additional details. |
170+
| Canvas App | [app-formula-issues-medium](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-formula-issues-medium&client=PAChecker) | Refer to Power Apps formula references for additional details. |
171+
| Canvas App | [app-formula-issues-low](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-formula-issues-low&client=PAChecker) | Refer to Power Apps formula references for additional details. |
172+
| Canvas App | [app-use-delayoutput-text-input](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-use-delayoutput-text-input&client=PAChecker) | Use delayed load in some scenarios to improve performance. |
173+
| Canvas App | [app-reduce-screen-controls](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-reduce-screen-controls&client=PAChecker) | Limit the number of app controls for improved performance. |
174+
173175
| Canvas App | [app-include-accessible-label](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-include-accessible-label&client=PAChecker) | Use explicit labels to improve app accessibility. |
174176
| Canvas App | [app-include-alternative-input](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-include-alternative-input&client=PAChecker) | Ensure all interactive elements are accessible to alternative inputs. |
175177
| Canvas App | [app-avoid-autostart](https://go.microsoft.com/fwlink/?LinkID=398563&error=app-avoid-autostart&client=PAChecker) | Avoid using autostart on players within an app. |

0 commit comments

Comments
 (0)