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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard