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

Gallery choice redirects to another page to edit?

Is it possible to select a gallery item and it redirect the user to another page for editing?

For example, lets say the user sees a gallery list and wants to select one for editing-

MShelnutt_1-1615921616092.png

 

Then when selected, it opens that particular item up on Screen 3 maybe in a edit form(?) and then they can save the changes back to SharePoint, and it redirects back to Screen 2 where the Gallery is and it is now updated.

 

Is this possible?  And if so, how.

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
MShelnutt
Helper V
Helper V

I found a video by Reza Dorrani that was perfect for this-

https://youtu.be/9gI9OscTLD0 

View solution in original post

6 REPLIES 6
StalinPonnusamy
Super User
Super User

This is possible. On gallery window Select(Parent);Navigate(EditScreen1). Same way on Edit screen Save and Navigate to Galley

@StalinPonnusamy when I save the EditForm, what is the formula for patching the current SharePoint record?

StalinPonnusamy
Super User
Super User

Patch(Employee,
Defaults(Employee),
{Lookup:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:Gallery1.Selected.ID,
Value:Gallery1.Selected.Title}
}
)

@MShelnutt 

If you are in an EditForm, you will NOT want to Patch anything, you will want to SubmitForm

 

So, on your Edit Screen in the EditForm, set the Item property to: yourGalleryName.Selected

In the "save" that you have, put the following formula:  SubmitForm(yourFormName)

In the OnSuccess action of the Form, put the following: Back()

 

I hope this is helpful for you.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

I found a video by Reza Dorrani that was perfect for this-

https://youtu.be/9gI9OscTLD0 

RandyHayes
Super User
Super User

@MShelnutt 

It's fine, but his video highlight what not to do with multiple forms - Patch!!  When you use his method, you lose the functionality of the EditForm.  If you'd like to see how to do it properly and NOT lose the functionality of the form, then you can watch my video on the subject.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

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,297)