cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
plotwistking
Frequent Visitor

How do I edit the value of an specific SharePoint list column and row

I'm very new to PowerApps so my terminology sucks, so bear with me.

 

Let's say I have a SharePoint list I'm working with in PowerApps.

plotwistking_1-1669660071765.png

I generate an App based on this list. In it, I'm able to select one of the above rows, if I do, I'll enter a new screen that lists all its details, which also contains a button to edit it, and a button to delete it.

Let's say I select the ID 1 row.

I'm creating a new button that's almost a copy-paste of the delete button which will be the "Lock" button. For now, all I want it to do is edit the Column "Lock" of the selected row to "Yes". What should my code look like? I know 

 

BrowseGallery1.Selected

 

 plays a role here, through I'm not exactly sure how to work with it. Thanks for reading.

1 ACCEPTED SOLUTION

Accepted Solutions
plotwistking
Frequent Visitor

Learning the difference between Record and Gallery helped tremendously. Here's the solution I found:

Patch(LIST, BrowseGallery1.Selected, {Lock: "Yes"});

View solution in original post

1 REPLY 1
plotwistking
Frequent Visitor

Learning the difference between Record and Gallery helped tremendously. Here's the solution I found:

Patch(LIST, BrowseGallery1.Selected, {Lock: "Yes"});

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,420)