cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ardions
Helper I
Helper I

Create a Delete button to delete checked gallery items

Dears,

I have a gallery connected to a SharePoint list in my app. I added a checkbox(CBGallery) per item in the gallery and one check box that checks all boxes in the gal(CB_checkall) outside the gallery.
At the moment I have one button to assign Team Leads to a group of people. Here's my onSelect:
Patch('Quality evaluator',ForAll(Filter('Gal-schedule'.AllItems,CBGallery.Value) As _item1,{ID: _item1.ID,'First evaluator':'combobox.evaluator_3'.Selected,'Status evaluation': "Pending"}))

I want to add a delete button that will delete the items I checked with my checkbox but I'm not being able to do it. Can you help?

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Ardions 

Please consider the following Formula:

ForAll(
    Filter('Gal-schedule'.AllItems,CBGallery.Value) As _item1,
    RemoveIf('Quality evaluator', ID= _item1.ID)
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@Ardions 

Please consider the following Formula:

ForAll(
    Filter('Gal-schedule'.AllItems,CBGallery.Value) As _item1,
    RemoveIf('Quality evaluator', ID= _item1.ID)
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

You're the very best @RandyHayes 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,965)