I have a database where several fields get a default value set by the database. In my data entry GUI (web-based), I want to initialize new records that are displayed in an 'Insert Record' page to these default values.
My idea is to create a new record inside a transaction just prior to an 'Insert Record' page being displayed to the user and then process it AS IF it were an Edit Record page. If the user ended up cancelling the Insert operation I could then rollback the new record creation transaction. If the user OKs the 'Insert' (actually an Edit), I would commit the transaction.
Does this sound like a reasonable way to do this? Or am I making it over complicated?