cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Doddy83
Helper IV
Helper IV

Use PowerApp to update existing list item

Hello Everyone,

 

I've created a Corrective Action form. It has a number of screens. Initially users have a screen to add a new item to the SP list. I've created another screen with a gallery they can search to find the corrective action they previously submitted. I need a button that will take them to the update screen that will allow them to update that specific list item with the corrective action they have taken instead of adding a new item to the SP list.

 

Any help much appreciated, as always

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Doddy83 ,

Do you add a Edit form within your Update screen?

Do you want to update existing record selected from your Gallery within your Edit form?

 

I agree with @WarrenBelz 's thought almost. Please set the OnSelect property of the ">" icon in your Gallery to following:

Navigate(UpdateScreen);
EditForm(UpdateEditForm)

Within your Update screen, add a Edit form (called "UpdatedEditForm"), set the Item property of this Edit form to following:

Gallery1.Selected

connect the UpdatedEditForm to same data source as your Gallery1. Please make sure the DefaultMode property of the Edit form to following:

FormMode.Edit

Add a "Submit" button in your UpdateScreen, set the OnSelect property to following:

SubmitForm(UpdatedEditForm)

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User III
Super User III

HI @Doddy83 ,

You can use the same form as the New form - just use on the OnSelect of the Gallery to set the FormMode (replace all Your references with your actual form and screen names)

EditForm(YourFormName);
Navigate(YourScreenName)

Then on the Item of the form

YourGalleryName.Selected

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

v-xida-msft
Community Support
Community Support

Hi @Doddy83 ,

Do you add a Edit form within your Update screen?

Do you want to update existing record selected from your Gallery within your Edit form?

 

I agree with @WarrenBelz 's thought almost. Please set the OnSelect property of the ">" icon in your Gallery to following:

Navigate(UpdateScreen);
EditForm(UpdateEditForm)

Within your Update screen, add a Edit form (called "UpdatedEditForm"), set the Item property of this Edit form to following:

Gallery1.Selected

connect the UpdatedEditForm to same data source as your Gallery1. Please make sure the DefaultMode property of the Edit form to following:

FormMode.Edit

Add a "Submit" button in your UpdateScreen, set the OnSelect property to following:

SubmitForm(UpdatedEditForm)

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @WarrenBelz, thank you for the reply.

 

The reason I'm using a seperate form is it's a different set of questions they need to answer, mayby 'edit' wasnt the best choice of word, it's more like and update or addition to the list thats needed. They dont have the same questions as on the initial screen.

Thank you @v-xida-msft  so much for your time! This is spot on and tested ok!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,731)