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

SP list item details not updated after edited

Hi

I have created a simple app that connects to a SharePoint list and has List, Details, Edit screens (standart one).

When I edit and save a list item, the details page is not updated until I restart an app ( list in SharePoint is updated)

Is there any way to force Details screen to update after Submit on a Edit screen?

Thanks

5 REPLIES 5
Highlighted
Post Prodigy
Post Prodigy

Re: SP list item details not updated after edited

Hi @RomanKorchak

 

The reason you cannot see it is you need to Refresh(<Datasource>).

 

PowerApps has loads of caching so if you update or Insert a record, it does not immediately update the version in PowerApps unless you do a Refresh.

 

Regards

 

Nigel

Highlighted
Helper IV
Helper IV

Re: SP list item details not updated after edited

I do have Refresh(<Datasource>) under OnVisible in Details screen - I thought that would be enough 

Highlighted
Post Prodigy
Post Prodigy

Re: SP list item details not updated after edited

Hi @RomanKorchak

 

OnVisible only fires when the Page is displayed.

 

Unless you close the page and then re-open it by say going back to the main menu and then clicking on a menu item to display the page, the OnVisible event will not fire.

 

Regards

 

Nigel

Highlighted
Resolver I
Resolver I

Re: SP list item details not updated after edited

I'm assuming you have a separate screen for detail and edit. 

 

On your navigation button put Refresh(SPList) on the 'OnSelect' properties. 

Highlighted
Helper IV
Helper IV

Re: SP list item details not updated after edited

A bit of an update:

I have a few (8 at the moment, may need to add more) identical SP lists and did not want to create a separate ListScreen/DetailsScreen/EditScreen screens for each list . So I created a menu screen with buttons for each list that navigates to Details screen passing particular SP list as a variable

 (   Navigate(ListScreen, ScreenTransition.None, {TheList:SPList1} )

And then on DetailsScreen and EditScreen using passed List value as DataSource

Its all seems to be working fine exept if I go back to ListScreen or DetailsScreen after updating on EditScreen data on ListScreen and DetailsScreen are not updated.

I have added Refresh(SPList) to Onselect on main screen and if I go back to main screen and click on a button - data is refreshed. 

So how can I refresh DetailsScreen and ListScreen after data eddited on EditScreen  without going back to main screen?

Thanks

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,756)