Skip to content

Commit 618272b

Browse files
committed
updated refresh ribbon
1 parent 3492124 commit 618272b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ 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 violation of all the ribbon actions and you should use promises and asynchronous pattern in `EnableRule` to control the visibility of a ribbon action.
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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ 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+
| 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. |
168169
| 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. |
169170
| 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. |
170171
| 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. |

0 commit comments

Comments
 (0)