exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 5 question 18 discussion

Actual exam question from Microsoft's PL-400
Question #: 18
Topic #: 5
[All PL-400 Questions]

HOTSPOT -
You are developing a business process flow.
JavaScript must be used to implement additional business logic in the business process flow.
You need to evaluate the JavaScript code.
What is the result of running each code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Hides the control in the body of the form.
The Client API form context (formContext) provides a reference to the form or to an item on the form, such as, a quick view control or a row in an editable grid, against which the current code is executed. setVisible sets a value that indicates whether the control is visible.
Box 2: Add an event handler to enable a function named TestFunction to run when the business process flow stage changes. addOnStageChange adds a function as an event handler for the OnStageChange event so that it will be called when the business process flow stage changes.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/clientapi-form-context https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data-process/eventhandlers/addonstagechange

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
700157a
Highly Voted 11 months, 1 week ago
provided answer is correct. If we want to hide a field in bpf from javascript, then we use the formula "header_process_" + fieldname.
upvoted 10 times
...
Juan0414
Most Recent 3 months, 3 weeks ago
Correct! 1. What 700157a said 2. https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-data-process/eventhandlers/addonstagechange
upvoted 1 times
...
SuperRaj
1 year ago
for me: Hide control in form and Business Process Flow
upvoted 3 times
...
Alehn96
1 year, 6 months ago
for my.is correct answer
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...