PL-400 · Question #137
You are a Dynamics 365 developer working on a model-driven app. You add a button to an entity form and to the view for the entity that calls a JavaScript function. When you click the button, it…
The correct answer is A. In the JavaScript web resource, add the missing web resource as a dependency. Web resource dependencies You can define dependencies between other web resources. The primary purpose of this feature is to allow association of String (RESX) web resources with the JavaScript web resources that will use them. This is also the way that web resources required…
Question
Options
- AIn the JavaScript web resource, add the missing web resource as a dependency.
- BAdd &ribbondebug=true to the app URL and run the Command Checker tool.
- CFrom the Ribbon Workbench, add the missing JavaScript web resource as a CustomRule in
How the community answered
(31 responses)- A81% (25)
- B13% (4)
- C6% (2)
Explanation
Web resource dependencies You can define dependencies between other web resources. The primary purpose of this feature is to allow association of String (RESX) web resources with the JavaScript web resources that will use them. This is also the way that web resources required by HTML web resources for use offline can be configured to also be available offline. Within a solution you can define dependencies within solution components. Up until Mode-driven Apps the main purpose of these dependencies was to prevent the deletion of a solution component when another solution component depended on it. With Model-driven apps the behavior for JavaScript web resources is enhanced so that any other web resource listed as a dependency to the JavaScript web resource will be loaded along with the JavaScript web https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/web-resource- https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-
Community Discussion
No community discussion yet for this question.