Transactions across both master/detail

It would be nice to be able to implement a single commit/rollback transaction for both master and detail records in a master/detail form.
Transactions I think are currently isolated to the application you are working on.

This is what I want to be able to achieve: Is it possible?
? Have the detail form as a Multiple Record grid but only have ONE Save button for the master and detail forms combined (i.e. suppress the Save Selected button and have it triggered from the master form’s Save button).
In addition, I want to start a transaction for both forms onValidateSuccess.
Commit detail and master records if ALL master and detail transactions update.
Rollback detail and master if any fail to udpate.
I want to handle the transactions of master and detail forms together to achieve ACID integrity.

Can you commit/rollback records of the related detail table from the master Save button?