cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CLS720 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

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

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
TimRohr Solution Sage
Solution Sage

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

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

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

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

TopShelf-MSFT Community Champion
Community Champion

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

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

 

@TopShelf-MSFT

ECapps
Regular Visitor

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

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (5,979)