Before I post a document to the database I need to do some calculations.
As such, I want to copy the page values to local storage, do calculations, then subsequently post local storage variables to the database.
To that end, I'd like to create a page service to map all the page values to local storage.
How do I do that?
Create a generic service that does nothing but use the "before send" to map page to storage? If so, do I need to define the generic services other than just the shell since I'm not asking it do anything?
Do it all in javascript off the button? i.e., write javascript to copy page values to storage (less desirable as I like the ease of map UI)
Hope that makes sense.