Use the transaction recordset to preserve submitted values

To allow easier error handling methods, the new Transaction Engine 3 uses the transactionrecordset as a means of transferring data.

The transaction recordset goes through three different states:

  1. Initial state - when it is created, it is filled with some default values. If the page contains an update transaction,  the transaction recordset will be populated with filtered data from the table to be updated, based on the record ID passed to the page.
  2. When the page is submitted, the recordset will contain all data from the form corresponding to the transaction it is registered to. This way, when error handling is done server side, it can rollback to the page containing the form, which will be populated with data extracted from the transaction recordset. The wrong or missing fields will be highlighted, or if there is a different kind of error (like a duplicate entry, or a bad password, etc) the error message displayed, but no values will be lost.