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

Refresh ThisItem

hi folks,

 

I'm having a multiple screens application.

 

On Screen 1, I filtered a SP list and show the dataset in the Gallery. By "OnSelect" of an item, I do:

Set(_CurrentCode, ThisItem);
Navigate(DetailScreen, ScreenTransition.Fade)

On DetailScreen, there is an EditForm with the following properties:

DataSource : 'The SP List'

DefaultMode : FormMode.Edit

Item : _CurrentRecord

The item being brought from Screen 1 will be shown in this form. All datacards on this form is of DisplayMode : View. There is a button to modify the details of this, so navigating to EditScreen.

 

On EditScreen, I got a form to modify the details, it works fine. Once OnSuccess, the screen goes back to DetailScreen by using Back().

 

Now the problem is, the details shown on DetailScreen is not refreshed after the change. I used Refresh('The SP List') in the OnVisible on the screen, but it doesn't work.

 

Any advice ? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Refresh ThisItem

Hi @gavinleung ,

 

Since your issue is that the DetailForm does not refresh with the newest update, then what are the formulas in Item property of the DetailForm? Are you also using the variables? If so, then you will need to also reset the variables with the newly updated record. 

 

Regards,

Mona

Community Support Team _ Mona Li
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

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Refresh ThisItem

Hi @gavinleung ,

 

This is just a standard app and if you are using the SharePoint/Excel .etc data sources, that you could create one auto-generated app from Home > Start from data > connect to your data source.

 

In this auto-generated app, you could check the formulas set already, and compare to yours. For example, we usually set the OnSelect property of the gallery to:

Navigate(DetailScreen1, ScreenTransition.None)

Then set the OnSelect property of each item inside the gallery to:

Select(Parent)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Resolver I
Resolver I

Re: Refresh ThisItem

Hi @v-monli-msft , not exactly. My app was modified based on the standard app, but changed a lot. 

 

The EditForm on DetailScreen is being used by multiple screens / galleries. So I need to carry the item selected by a variable called _CurrentRecord. With this, the EditForm can show the correct content. 

 

Any other advice ? 

Highlighted
Community Support
Community Support

Re: Refresh ThisItem

Hi @gavinleung ,

 

Since your issue is that the DetailForm does not refresh with the newest update, then what are the formulas in Item property of the DetailForm? Are you also using the variables? If so, then you will need to also reset the variables with the newly updated record. 

 

Regards,

Mona

Community Support Team _ Mona Li
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

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!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,721)