Greetings all.
Let me start by thanking all of the contributors on here, what a great resource! I am looking for some suggestions and guidance on how to structure an app that I am building so that data being entered into inputs is repopulated in the event of the app being closed, device turning off, etc.
Use case:
- A daily log that is filled and added to throughout the day, being submitted at the end of the day.
- Only one user will be accessing the app.
- Data must be organized by date in SP with only one row per date containing the data
Requirements:
- If powerapps is closed, crashes, or the device running it dies, all inputs prior to patching to SP will be autopopulated to resume work.
- Must be done automatically, without the use of a "save" button.
Wishlist:
- inputs can be viewed throughout the day on SP, prior to patching completed log to SP
- session can be resumed on another device in the event of a device failure (non-local storage)
I have found a few similar examples, but nothing that quite fits my use case (I may have missed them, my apologies if this post is redundant). I have a few ideas of how I may be able to achieve this, but they may not be best-practice or I could be completely wrong and they are not viable options.
1. have OnStart set to loaddata from collection and set each input to Onchange clear the associated column in collection and collect input
2. Group the different inputs and have a button for each. I.E button for "Opening Readings" pops out a form to enter all opening readings which will patch to a temporary list in SP i.e "Opening Readings". Set form to Onstart loaddata from SP "Opening Readings", save button displayed will remove all data from SP "Opening Readings", patch current inputs. repeat for all groups of inputs and have labels on the main page that show data from their respective SP lists with a "submit" button that will patch all data displayed in labels to main SP list, remove data from from all temporary SP lists.
3. Create "draft" SP list and set timer to OnEnd remove all data from draft SP list and patch all entries to draft SP list. Set OnStart to retrieve data from draft SP list. Submit button patches data to main SP list and clears draft SP list.
Sorry to ramble on but I am really enjoying SP & PA and excited about all of the possibilities. I hope I made some sense here.
Thanks gurus,
poolboy


Report
All responses (
Answers (