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

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
v-monli-msft
Community Support
Community Support

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.

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 ? 

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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (35,422)