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

Edit screen not displaying the right selected item

I've set up a PowerApps form as an integration with a SharePoint list and have 4 screens. 

  1. EditScreen - This is used as the NewForm and OnEdit properties (i.e. "NewForm(EditForm)" and "Navigate(EditScreen,ScreenTransition.None,{ID:ID_DataCard1.Default})")
  2. DetailScreen - This is used as the OnView property (i.e. "Navigate(DetailScreen,ScreenTransition.None,{ID:ID_DataCard1.Default})")
  3. ConfirmationScreen - This screen displays after an item has been successfully submitted into the list. 
  4. Gallery Screen - This screen is currently not being used but has been set up as a Gallery. 

All tests on the app work as expected, no problems. But if I go to the SharePoint list, right-click on an item and select Edit, it doesn't show me the item I had right-clicked. It shows me the very first item ever created on the list. I originally didn’t use a context in Navigate and the same thing was happening so I thought adding a context would fix this, but apparently not. 

I realise that using the gallery might be the best solution but I can't find any way to set this up as a view. And, I've tried logging out and back in but this doesn’t fix the issue. What am I missing? I appreciate any help/advice you can give. 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Edit screen not displaying the right selected item

Hi @upstreampsadmin,

Could you please share a bit more about your scenario?

Do you custom a form for your SP list using PowerApps?

Could you please share more details about the ID_DataCard1 that you mentioned?

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

Based on the formula that you provided, I think there is something issue with it. I have made a test on my side, please take a try with the following workaround:

Set the Item property of the Edit form (SharePointForm1) to following:

If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First('20190126_case3'),SharePointIntegration.Selected)

Set the OnEdit property of SharePointIntegration control to following:

Refresh('YourSPList');
EditForm(SharePointForm1)

Set the OnNew property of SharePointIntegration control to following:

Refresh('YourSPList');
NewForm(SharePointForm1)

Set the OnView property of SharePointIntegration control to following:

Refresh('YourSPList');
ViewForm(SharePointForm1)

 

In addition, please check and see if the following blog would help in your scenario:

https://powerapps.microsoft.com/es-es/blog/separate-custom-forms/

 

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

Re: Edit screen not displaying the right selected item

Hi @v-xida-msft

 

Your first two questions are answered in the very first sentence of my original post. 

 

Whenever a new item is created in a list, it is assigned an ID. I included it in the form as I thought I'd have to refer to it in the OnView and OnEdit properties - I've set its visibility to false so users can't see or change it. 

 

In the part of the if statement, with what do I reaplce the '20190126_case3') in the First statement?

First('20190126_case3')

Thank you, this is very helpful. 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 169 members 5,452 guests
Please welcome our newest community members: