Home » Microsoft » PL-400 v.2 » Which code segment should you use?
You need to add the script for the registration form event handling.
Which code segment should you use?
A. formContext.data.entity.addOnSave(myFunction)
B. formContext.data.addOnLoad(myFunction)
C. formContext.data.removeOnLoad(myFunction)
D. addOnPreProcessStatusChange
E. formContext.data.isValid()
Correct Answer: B
Explanation/Reference:
Scenario: Information about upcoming tournaments must be pre-located into the registration form when the registration form loads. addOnLoad adds event handlers to the Subgrid OnLoad event event.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/grids/gridcontrol/addonload