Hi All,
We have a requirement where we need to automatically save data to DB from site page if user is not performing any action for defined time.Please make a note that we looking for a solution which would save data without any user interaction.Any help is highly appreciated.
Thanks!Mayur Mondhe
Discussion posts and replies are publicly visible
As part of our POC, we are calling web API on refresh variable of the site page. The web API is responsible to save data to DB. This API gets triggered at an interval and saves the data. I would like to know if this would be a best approach to achieve auto save function or not .
Thanks!
Mayur Mondhe
I consider this a bad practice!
But instead of discussing how to solve that, I would be more interested in the actual requirement? Why do you think this is necessary? What is the benefit?
I refer to my previous response. Whilst this is certainly less "chatty" than updating on every user event, whatever data the user has entered in any/all fields that you are sending will include values that might be considered to be invalid by any validation errors thrown on any input fields.