Hi savant1.
In that form r u using multiple blocks are one block.
If one block try the following code in When-window-closed trigger.

If :system.Record_status = 'Insert' then
commit;
else
Exit_form(no_commit);
end if;

Thanks
ABC