Hello
I am trying to add a checkbox with a select all and Unselect all function and this will save the items that i have choosen in a Gallery to a collection. for now I have succeeded if i choose the checkbox for the specific item in the gallery then it will collect the item to a collection for later purposes and if i uncheck, it will delete the item from the collection.
When i select "Unselect all", my collection will be cleared out and reset. I have a hard time for the "Select all" to collect the items from my filter to the same collection. Is there any way to "Select all" and collect the filtered items to a collection?
Thank you in advance if someone could help me with this.
Hi @a374229_Tommy ,
I see you have a Delegation warning there (although it may not be relevant to this). If your gallery is based on a SharePoint list, try this
RemoveIf(
BatchGTOid,
ID = ThisItem.ID
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hello WarrenBelz,
I have gotten a issue after the new IF formel. When I try to uncheck a specific item from the Gallery, it doesn't remove the specific item from the collection? any suggestion?
Thank you!
Hi @a374229_Tommy ,
On the OnSelect of the top check box
If(
Self.Value,
ClearCollect(
YourCollectionName,
GalleryName.AllItems
),
Clear(YourCollectionName)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473