cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Usernametwice23
Helper V
Helper V

How to Modify gallery text inputs that updates an existing record in table?

Hey guys,

 

I really appreciate all the help I get with this community, so thank you! 

 

I am trying to update an existing record that appears in a gallery. I would like to update the price and quantity of the record through text inputs in the gallery using a button. So once clicked, the update or patch is submitted into the existing price and quantity records. 

 

At first i thought it would be as simple as - 

 

Patch( [@Table12], ThisItem)

 

 This doesnt show any errors but also doesnt update anything. But if I place 'remove' function instead, that works (not what I need though).

 

So I then tried - 

 

Patch(Table12, {Quantity: Value(TextInput4_1.Text)})

 

But this creates a completely new record. I think i'm close, I just need to place that record in the existing record. 

 

Thanks all for any help. .

 

Ps I put a screen shot so you can view my gallery for a better understanding. Yellow button is the modify button. 

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Super User
Super User

First Way. Add button inside the gallery. Where you specify record by ThisItem

a3.jpg

 

Second Way. Where you have button outside gallery. You first have to select the record you want to update

a4.jpg

View solution in original post

2 REPLIES 2
zmansuri
Super User
Super User

First Way. Add button inside the gallery. Where you specify record by ThisItem

a3.jpg

 

Second Way. Where you have button outside gallery. You first have to select the record you want to update

a4.jpg

Thanks this worked! 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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