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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,735)