sc_commit_trans("Connection")

This macro has the objective to confirm a transaction set in the database.

In form applications, the events that can run this macro is dependent of the database update (onAfterInsert, onAfterUpdate, onAfterDelete, onBeforeInsert, onBeforeUpdate or onBeforeDelete), they are automatically protected through transaction control, since the connection is the same of the application.

If the user, in any of these events, use an application redirectioning (macro "sc_redir") must before the redirect, use this macro to guarantee the transactions previously effected.

The "connection" parameter is optional, being necessary, only, if the command is executed in a different database specified to the application.