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!
Solved! Go to Solution.
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
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
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