cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Navigation from Gallery to View page to Edit Page

Here is a quick description of my scenario and what I am seeing.

 

I have a main screen that display icons that can be navigated to.

When you click on an icon it takes you to a detail page.

When you click on the edit icon on the detail page it takes you to the edit page.

You can edit on that page and submit works.

 

Now the problem.

You are taken back to the detail page but it does not keep the same item, it resets to the very first item in that dataset.

 

Please let me know any further infromation I can provide.

2 REPLIES 2
Highlighted
Super User
Super User

Re: Navigation from Gallery to View page to Edit Page

When you use Navigate to move between the screens you can set a context variable - e.g.
Navigate(scnDetail,Fade,{RecordID: 5})

So you can pass the detail screen the ID (or other identifier) of the record that should be displayed and reference that ID in a Filter statement for Item property of the form on the detail screen (I'm assuming you are using forms).

If you are using a Form to enter a new record on the Edit screen, check out the LastSubmitted property so you can get the ID of the record created and pass that back to the Detail screen. If you are using Patch to enter a new record you can get the ID of the Patched record by setting a variable to the output of the Patch statement.

Highlighted
New Member

Re: Navigation from Gallery to View page to Edit Page

This is helpful and the direction I have been attempting to go.  I think I might be missing something.

 

I am using a Gallery from the first page to navigate like the following:

Navigate(DetailScreen_1, ScreenTransition.Fade)

 

Then on the DetailScreen_1 I have view forms (because I am doing a tile layout).  Each on of those  have the Item selected as SupplierGallery.Selected

 

On the Edit Screen I have OnSuccess set to:

Navigate(DetailScreen_1,ScreenTransition.Fade)

 

I am guessing from your response and from what I have read I need to change the Item value from SupplierGallery.Selected to something different?

 

I appreciate your assistance!

Jim

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,717)