PL-200 · Question #15
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
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
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
How the community answered
(23 responses)- A9% (2)
- C78% (18)
- D4% (1)
- E9% (2)
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.