Exception Save Data

I have a large form that the users usually complete in one session where the data is written to a db upon submit. In some instances the user will start inserting data into the form but then leave their desk.
We have a requirement to abandon the form after 30 minutes and close the case. We do this by using an exception with a 30 min timer to an end event.

After testing and acceptance - the request has changed slightly. Now when the 30 minutes are up - the user wants the existing data to automatically be written to the DB.
I had thought to add a write to DB on the exception route. However upon testing It wasn't working and that would be because without the submit button, nothing is getting written to the PV! and therefore the writetoDB node has no data to write.

Is there anything I can do to give me an autosave type function ?

  Discussion posts and replies are publicly visible

Parents
  • This type of thing comes up a lot.

    It's hard to package the response up into a single answer that suits every use case because the needs of every enterprise vary.

    One thing you could try is to separate sections of the form down into a series of smaller "wizard" style forms.  As the users move from one form to the next, you can save the data from each form.  Alternatively, you could use write to data store from SAIL (a!writeToDataStoreEntity()) and capture each field as the data is entered.  Again, not every solution works for each situation.

Reply
  • This type of thing comes up a lot.

    It's hard to package the response up into a single answer that suits every use case because the needs of every enterprise vary.

    One thing you could try is to separate sections of the form down into a series of smaller "wizard" style forms.  As the users move from one form to the next, you can save the data from each form.  Alternatively, you could use write to data store from SAIL (a!writeToDataStoreEntity()) and capture each field as the data is entered.  Again, not every solution works for each situation.

Children