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/model-driven-apps/clientapi/reference/formContext-ui/refreshRibbon.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,18 @@ search.app:
32
32
33
33
## Remarks
34
34
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.
36
36
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`.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/data-platform/use-powerapps-checker.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -165,11 +165,13 @@ Here's a summary of each column in the report.
165
165
| 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. |
166
166
| 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. |
167
167
| 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
+
173
175
| 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. |
174
176
| 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. |
175
177
| 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