I have a gallery and clicking an item takes you to another screen. I use Patch() for new entries, and EditForm for editing. Once edited /added, I navigate back to the other screen with the gallery.
Only recently have I had complaints that the gallery does not auto refresh anymore and people need to pick another date (to update the gallery and then go back to the correct date), or refresh. This was not the case before.
I then tried to remedy it by setting the OnVisible property to Refresh(<Source>) and even now I am getting complaints it does not refresh, but it seems to when I use Edit mode, but not the Live version.
Is this something others are experiencing?
Edit: From testing, I think it is the gallery itself not updating, not the source.
Hi @xzDan ,
Could you please share a bit more about your issue?
Do you mean that Gallery control could not be refreshed automatically?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Set the OnSelect property of the "Submit" button to following:
If( EditForm1.Mode = FormMode.New, Patch('20190325_case13', Defaults('20190325_case13'), EditForm1.Updates), Patch( '20190325_case13', BrowseGallery1.Selected, EditForm1.Updates ) );
On your side, you should type:
If( EditForm1.Mode = FormMode.New, Patch('YourDataSource', Defaults('YourDataSource'), EditForm1.Updates), Patch( 'YourDataSource', BrowseGallery1.Selected, EditForm1.Updates ) );
Please consider re-create a new app based on your data source, then try above solution again, check if the issue is solved.
If the issue still exsits, please consider turn off the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, then re-publish your app, check if the issue is fixed.
I will try turning off improved rendering.
The issue is not the source being updated - this is fine. It is that the gallery itself does not refresh. I see the loading spinner at the top, but it isnt until I navigate away or something that it updates properly again. Perhaps something with the gallery being cached?
Hi @xzDan ,
Currently, I could not reproduce your issue on my side. Please also consider clear cache of your browser, and then run your app again, check if the issue still exists.
If the issue still exists, please consider submit an assisted support ticket for forther help through the following link:
I have submitted a ticket, thank you, as the issue is shared by others using the app and only started last week (this has been in use for several months now)
I am having the exact same issue with Dynamics as a datasource.
Adding a new weight works fine, but my gallery should remove any animal with a weight measurement taken today, so they are not duplicated.
The weights are adding, the date is correct, and the gallery updates once you exit out and re-enter the gallery, but it does not refresh using a refresh button, nor does it do it when navigating back to the gallery, and the Refresh function is in the formula of the navigation as well.
This is causing real issues, as my staff cannot use the app as it stands, as it is not working as it should.
Can someone shed any light?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.