Hello,
I have this Checkbox to delete all item from gallery and here's the code I applied:
Remove('NSD PROCESS MANUFACTURING - DUMPING',Gallery3_5.Selected)
But this keeps deleting items one-by-one instead of all the items selected.
Any suggestion on how to delete all selected items?
Hi @Virikefe22
If you have to remove all records regardless of any condition then use the All parameter of the Remove function
https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-remove-removeif
But if you have a condition then use the RemoveIf function mentioned in the same above link.
Hi @VJR
Yes, I have a checkbox on each datacard of the gallery.
Change Gallery3 for the datasource either the collection or dataset.
Hi @Virikefe22
Because it is mentioned Gallery3_5.Selected it will delete only the one selected item of the Gallery.
How does your gallery look like? Do you have a checkbox on each data card of the gallery?
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional