Feedback

onAfterInsert

This event occurs after a row is added on a form applications.

This event occurs after clicking the Insert button on the form. The form will execute the onValidate, onValidateSuccess and onBeforeInsert events, and right after executing the SQL command to insert the database record, it will execute the onAfterInsert event.

 


Example: After the inclusion of a record in the database, we want to store the inserting operation in a log table.

sc_exec_sql(" insert into log values ([glo_user],'target table','insert',{key_field}) "); //insert the user id that was stored in a session variable [glo_user] and the newly added registry key {key_field}.