cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Item Detail Page Navigates Back to Wrong Gallery

Hello Experts,

 

Still a PowerApps newbie and am having trouble with a gallery item detail page.  My app's backend is a single SharePoint list and it has two galleries.  The first one is on a screen called All Requests.  The second gallery is on a screen called My Requests and is filtered by user.  When I select an item,  it navigates to a screen called My Request Details (FormViewer2).  There is a back button on this page to navigate back to the My Requests screen but when I click it, it takes me back to the All Requests screen (gallery) instead of the  My Requests gallery.  The Item property of FormViewer2 is set to TemplateGalleryMyRequests.Selected and not to the first gallery called Gallery_Requests.   I'm not quite sure what other setting needs to be configured to navigate back to the My Requests screen.   What am I missing?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Item Detail Page Navigates Back to Wrong Gallery

Hi @dhebert87 ,

Have you solved your problem?

 

Thanks for your feedback, I think this issue may be related to updates within PowerApps. If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread as Solved.

 

Best regagrds,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
Highlighted
Super User III
Super User III

Re: Item Detail Page Navigates Back to Wrong Gallery

@dhebert87 

What code is being used in the OnSelect property of the back button?  Try replacing it with the code and use your own screen name.

 

Navigate(your_myRequests_screen_name,None);

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper II
Helper II

Re: Item Detail Page Navigates Back to Wrong Gallery

Hi @mdevaney ,

 

That is what I have in the OnSelect property of the back button.

 

Navigate(MyRequestsScreen, ScreenTransition.Fade)

 

It brings me to the All Requests screen instead.

 

Highlighted
Super User III
Super User III

Re: Item Detail Page Navigates Back to Wrong Gallery

@dhebert87 

Any chance there is some code in the OnHidden property of the Request Detail screen or the OnVisible property of the MyRequestsScreen?

Highlighted
Helper II
Helper II

Re: Item Detail Page Navigates Back to Wrong Gallery

No. There is nothing there.

Highlighted
Super User III
Super User III

Re: Item Detail Page Navigates Back to Wrong Gallery

What other code do you have in the OnSelect property of the button?

Highlighted
Helper II
Helper II

Re: Item Detail Page Navigates Back to Wrong Gallery

This is all I have there. Navigate(MyRequestsScreen, ScreenTransition.Fade)
Highlighted
Super User III
Super User III

Re: Item Detail Page Navigates Back to Wrong Gallery

@dhebert87 

I am all out of ideas here.  Did the back button on the app ever work?

Highlighted
Community Support
Community Support

Re: Item Detail Page Navigates Back to Wrong Gallery

Hi @dhebert87 ,

Could you please share a bit more about your issue?

Do you mean that the 'Navigate(MyRequestsScreen, ScreenTransition.Fade)' formula navigate to your AllRequests screen rather than your MyRequests Screen?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please check if you have typed additional Navigate(..) formula within the OnVisible property of your "MyRequests" screen or the OnHidden property of the FormViewer2 screen.

 

Please check if there are some Navigation mechanism between your "All Reuqests" screen and "MyRequests" screen, if true, please consider remove it and then try your app again, check if the issue is solved.

 

In addition, please make sure you selected an item in your second Gallery, and then navigate to the FormViewer2 screen. Please consider modify your Navigate formula within the "Back" button in your FormViewer2 screen to following:

Back()

then check if the issue still exists.

 

If the issue still exists, please consider re-create a new app based on your SP List, then try the Navigate formula again, check if the issue is fixed.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Item Detail Page Navigates Back to Wrong Gallery

@v-xida-msft 

 

Yes, that is exactly what I mean.   I tried using Back() and tried multiple times to remove formulas and put them back.   When I first built the app, navigation worked perfectly.  A couple of weeks ago, it broke.  Just yesterday afternoon, after adding the formula back, it begun to work properly.  Must have been a bug.  Strange.  Thank you for your response. 

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 (7,408)