
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:
Requirements:
Wishlist:
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
I think the only way to guarantee that your data is saved in the event that the session closes prematurely is to commit it to SharePoint at the time it is entered. You can always develop a summary afterwards. If someone has a better idea, I'd like to hear it.