cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooper33
Resolver III
Resolver III

Connecting SharePoint edit form to collection?

I have a gallery which is mapped to a collection (RecordsCollection) for better filtering performance of items in a SharePoint list

I want to be able to select an item, view it, and edit it. View is fine, having trouble with edit though. To get the item to display on the edit form, I set DataSouce to RecordsCollection and Item to Gallery.Selected. This pulls the fields through to the controls to edit but I'm not able to save the new info

I tried SubmitForm(EditForm) and Patch(RecordsCollection, Gallery.Selected, EditForm.Updates) and neither worked, I think because I need to connect it to the actual SharePoint list

Is there any way to make this conenction ono the edit form? Or do I need to Patch each field (want to avoid this if possible)?

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@cooper33 

Set your Form datasource to your real underlying data source.  

Set the Item to the Gallery.Selected

 

Your SubmitForm will work again.

 

HOWEVER, keep in mind, this does not change your local collection.  You will either need to Patch your collection or ClearCollect the items again.  That's one of the tricky parts about having a local collection like that...keeping it up to date.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@cooper33 

Set your Form datasource to your real underlying data source.  

Set the Item to the Gallery.Selected

 

Your SubmitForm will work again.

 

HOWEVER, keep in mind, this does not change your local collection.  You will either need to Patch your collection or ClearCollect the items again.  That's one of the tricky parts about having a local collection like that...keeping it up to date.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,448)