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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (5,757)