5. Creating Frames : Using Default Frame Definitions and Forms : Default Frame Definitions : Default Transaction Processing
 
Share this page                  
Default Transaction Processing
Vision-generated frames run in autocommit off mode. In Append frames, and Browse and Update frames that allow user qualifications, Vision inserts the following statements in the initialize block of the generated 4GL code:
commit work:
set autocommit off;
These statements are run before the form is displayed and before any Form-Start escape code is run. (For details on escape code, see Using Vision Advanced Features.)
If an error occurs during a query when a generated frame is run, a rollback statement in the generated code causes any changes made since the last commit to be backed out.