cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
indhaa
Impactful Individual
Impactful Individual

Select ALL Checked items to Collection

Hi

 

Creating a separate post for this issue

 

I have gallery (datatsource SharePoint list) with checkbox.

So when I click Select ALL button, it will the check the checkbox of all the items filter on the gallery screen and add these items to a collection.

 

indhaa_1-1622708397826.png

 

This is the OnSelect Property of SelectALL button  ' ForAll(DatabaseGallery.AllItems,Collect(DeleteCollection,Items)) '

 

However when I add Item like this, it is adding the items as below to the collection.

Only the value field have data as below image. 

indhaa_0-1622708115329.png

 

But if I add each individual item, the collection shows all the items correctly

 

indhaa_3-1622708852394.png

 

indhaa_2-1622708816166.png

 

Due to SelectALL collection issue my DeleteALL button OnSelect property is not working 

' RemoveIf(DatabaseAccess,ID in DeleteCollection.ID); '

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Community Champion
Community Champion

If you want to add all the filtered items shown on gallery into collection. There is no need for checkboxes or ForAll. On your button's OnSelect Property write:

ClearCollect(CollectionName,Gallery1.AllItems)

View solution in original post

1 REPLY 1
zmansuri
Community Champion
Community Champion

If you want to add all the filtered items shown on gallery into collection. There is no need for checkboxes or ForAll. On your button's OnSelect Property write:

ClearCollect(CollectionName,Gallery1.AllItems)

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,078)