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:
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round
Register by September 5 to save $200