PL-200 · Question #15
PL-200 Question #15: Real Exam Question with Answer & Explanation
The correct answer is C: Set the OnCheck value to populate a collection and the OnUncheck value to remove the item. Select the Checkbox control and click on the Action tab in the ribbon, click OnCheck and set value in the formula bar to: Collect (CompareList, ThisItem). Set the OnUncheck value to Remove(CompareList, ThisItem). This is required to make sure the unchecked items are removed from
Question
You have a canvas app that allows users to view, select and purchase products. The app uses a Gallery control to display products and checkboxes that allow users to select products. When users select items from the product catalog, they move to a different screen to complete a purchase. Users must be able to clear all product selections when they click the button. You need to configure the button. What should you do?
Options
- AUse the Reload(Control) formula and pass the gallery control as parameter to the Reload
- BUse the Reset(control) formula and pass the checkbox to the formula to clear user
- CSet the OnCheck value to populate a collection and the OnUncheck value to remove the item
- DUse the Revert(Products) formula and pass the checkbox to the formula to clear user
- EUse the Reset(Control) formula and pass the gallery control as a parameter to the Reset
Explanation
Select the Checkbox control and click on the Action tab in the ribbon, click OnCheck and set value in the formula bar to: Collect (CompareList, ThisItem). Set the OnUncheck value to Remove(CompareList, ThisItem). This is required to make sure the unchecked items are removed from the collection. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-reset
Topics
Community Discussion
No community discussion yet for this question.