PL-400 · Question #246
PL-400 Question #246: Real Exam Question with Answer & Explanation
The correct answer is D: Add columns in each JavaScript file as a dependency.. Column dependencies Starting with model-driven apps, if your JavaScript web resource depends on a table column value that you don't want to display in the form, you can set the column as a dependency for the JavaScript web resource. This means that the column will be available wi
Question
You are implementing business logic for a model-driven app form by using multiple JavaScript web resources. The business logic, number of JavaScript files, and the columns that the business logic requires are expected to change frequently. Some form fields will not be visible. Occasionally, non- developers will also make changes to the form. You need to prevent columns referenced by the JavaScript from accidentally being removed from the form based. What should you do?
Options
- AHide columns that should not be displayed.
- BSet all columns as business required.
- CAdd all columns as non-event dependencies to the form.
- DAdd columns in each JavaScript file as a dependency.
Explanation
Column dependencies Starting with model-driven apps, if your JavaScript web resource depends on a table column value that you don't want to display in the form, you can set the column as a dependency for the JavaScript web resource. This means that the column will be available within the client API columns collection so you can get or set the value in your code. When you add a dependency this way, the controls collection of the column will be empty because there will be no control on the Before this feature you would need to manually add the column to the form and then configure the control to be hidden. Now you can establish this dependency more directly and eliminate the possibility that someone will remove the hidden column from the form. https://docs.microsoft.com/en-us/power-apps/maker/model-driven-apps/visibility-options-legacy
Community Discussion
No community discussion yet for this question.