Hi I've been building PowerApps for quite a while, but not sure I really know what the best way to submit data and keep my app refreshed.
So I'll put this out here and please let me know if I have an misconceptions.
For this discussion, I have an app, SharePoint lists for the data, Creating collections at app startup for each SP List, I have multiple Galleries on my main screen and I have a couple other screens for adding new records or editing.
So one of the frustrations I often have is after adding a new record or editing, the data in my galleries isn't always updated and also sometimes I lose my sorts and filters. Also sometimes I can see other records for a second before I transition to my primary screen. or Other weird things
Should I be setup like this in this order:
New Form
Save Button > ON Select
- Data Validation Stuff
- Data Calculation Stuff
- Set other variables for visibility, required, colors, etc.
- Submitform
Then for the form, On Success
- Additional Patches
- ClearCollect (with sorts/filters)
- Navigate
- Reset Forms
Other Questions:
- What about refresh do I need it? Do I need ClearCollects and Seperate ClearCollects with Filters/Sorts? Or just once?
- For the Galleries is it best to have them tied to the collections or the SP Lists themselves?
- Should I use on visible on the main form to do any sorting/filtering of the galleries or just use the onselect/onsuccesses?
Thanks,
Terry