cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

People Picker fields for items selected in gallery are incorrect in view form

I have a gallery which shows a summary of requests:

galleryissue.jpg

When you click "Review" in the gallery, you are navigated to a Request Details screen and an UpdateConext variable called item is created from the selected item and passed to the next screen. Here is the code for the OnSelect Property of Review:

Navigate(RequestDetailsScreen, Fade, {item: schedReqsGallery.Selected})

The item is then set as the Item property for the Viewform that is on the Request Details screen:

reqdetailsissue.jpgThe problem is that the view form is showing the incorrect data for the fields that are people picker fields. I previously clicked on one of the other requests where "Christopher L Smith" was the requester, but even after navigating back to the gallery and clicking on the request where "Mitzi Crawford" is the requester, the requester field (and other people picker fields) displayed "Christopher L Smith" as the requester. All of the other fields (Mnemonic, Facility, Department, Reason, etc) are correct in the view form.

 

I can reproduce this error when I directly open and play the app, but not when I am editing the app and then clicking play. Has anyone else experienced this issue? Is this a bug on the PowerApps side of things? Should I use a Set() variable instead of a UpdateContext() variable?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @CLS720,

Could you please share a bit more about your issue?

Do you mean that the Requester field value (Person field) could not be displayed correctly within your Display form?

I have made a test on my side, and don't have the issue that you mentioned.

Please take a try with the following workaround:

Set the OnSelect property of the "Review" button to following:

Select(Parent);  /* <-- Add this formula */
Navigate(RequestDetailsScreen, ScreenTransition.Fade, {item: schedReqsGallery.Selected})

Or

Select(Parent);  /* <-- Add this formula */
Navigate(RequestDetailsScreen, ScreenTransition.Fade, {item: ThisItem})

Set the Item property of the Display form to following:

item

then check if your issue is solved.

In addition, please also consider take a try with the following workaround:

Set the OnSelect property of the "Review" button to following:

Select(Parent);  /* <-- Add this formula */
Set(item, ThisItem); /* <-- Save current item into a variable */
Navigate(RequestDetailsScreen, ScreenTransition.Fade)

 

Best regards,

Kris

 

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

4 REPLIES 4
Solution Sage
Solution Sage

What is the Text property of the affected textboxes on the Details screen?

And the Item property of the Form on the Details screen?

Community Support
Community Support

Hi @CLS720,

Could you please share a bit more about your issue?

Do you mean that the Requester field value (Person field) could not be displayed correctly within your Display form?

I have made a test on my side, and don't have the issue that you mentioned.

Please take a try with the following workaround:

Set the OnSelect property of the "Review" button to following:

Select(Parent);  /* <-- Add this formula */
Navigate(RequestDetailsScreen, ScreenTransition.Fade, {item: schedReqsGallery.Selected})

Or

Select(Parent);  /* <-- Add this formula */
Navigate(RequestDetailsScreen, ScreenTransition.Fade, {item: ThisItem})

Set the Item property of the Display form to following:

item

then check if your issue is solved.

In addition, please also consider take a try with the following workaround:

Set the OnSelect property of the "Review" button to following:

Select(Parent);  /* <-- Add this formula */
Set(item, ThisItem); /* <-- Save current item into a variable */
Navigate(RequestDetailsScreen, ScreenTransition.Fade)

 

Best regards,

Kris

 

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

Anonymous
Not applicable

Thanks for your post @CLS720 - could you review the information provided and update the thread?

 

@Anonymous

I have been having the same issue for about a month. 

  • I select an item in the gallery it take me to a form in view mode - everything looks great
  • I go back out to the gallery select a different item and the People Picker fields do not update to the values of the new item.  They display the values from the first item selected.
  • The worst part is that when I'm editing the App, I am not able to replicate the same issue.  It works great in the test environment, just does not work on the live site.  Any time a make a change, I'm having to see if it works on the live site, because the test site looks great. 

Please help. - I did try all of your suggestions and they did not work for me.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,481)