web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Deleting Edits made
Power Apps
Unanswered

Patch Deleting Edits made

(0) ShareShare
ReportReport
Posted on by 209

Hello, I'm creating a shopping cart app and one the second page of the app, I have a gallery displaying a shopping cart of the users selected items. I wanted to give the user the ability to make changes in the quantity they selected in a text label using a patch function OnChange=

Patch(
colShoppingCart,
ThisItem,
{Qty: Value(Self.Text)}
)

The problem is, everytime I try to click on the text label to edit, the entire item selection is deleted. I do have a trash can item in the gallery to delete items but I doubt that if effecting the patch.

patch2.PNG

 

 

Thanks to anyone that can help!

 

 

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    You must have wrote remove code on the template on select. And by default all the gallery items have Select(Parent) on their on select. So when you select the label it select the parent and delete the entry. Make sure that's not the case. Write your remove code only on the trash icon

  • Broly123 Profile Picture
    209 on at

    @zmansuri Thank you for the response! So on the OnSelect mode for the label, it reads Select(Parent). The remove is on the trash icon as you said, unless I didn't quite understand what you meant in your answer.

    delete.PNG

    delete2.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard