cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dhebert87
Level: Powered On

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
Community Support Team
Community Support Team

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
Super User
Super User

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."

dhebert87
Level: Powered On

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.

 

Super User
Super User

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?

dhebert87
Level: Powered On

Re: Item Detail Page Navigates Back to Wrong Gallery

No. There is nothing there.

Super User
Super User

Re: Item Detail Page Navigates Back to Wrong Gallery

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

dhebert87
Level: Powered On

Re: Item Detail Page Navigates Back to Wrong Gallery

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

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?

Community Support Team
Community Support Team

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.
dhebert87
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,636)