onAfterUpdate
This event occurs after clicking on the Form's Save button. The form will then execute the onValidate, onValidateSuccess and onBeforeUpdate events, and right after executing the SQL command to insert the database record, it will execute the onAfterUpdate event.
Example: After updating a record in the database, we want to store the update operation in a log table.
sc_exec_sql(" insert into log values ([glo_user],'target table','update',{key_field}) "); //insert the user id that was stored in a session variable [glo_user] and the newly added registry key {key_field}.