Feedback Print

Events

Within the events you can include Scriptcase global, local variables, libraries and macros, PHP, JavaScript, HTML and CSS codes.

onApplicationInit

This event occurs only once, when the application is loaded and before the application executes the SQL. It can be used for data processing or checking variables.

Example: if ([glo_var_dept] != ‘financial’){ sc_redir(app_x.php); }

onNavigate

This event occurs when navigating between the application pages.

OnScriptInit

This event occurs when the application scripts are started. It runs before the OnLoad events(when present), however, it will always be executed when running, reloading or navigating the application.

onLoadRecord

This event is executed at the moment the record line is loading. The OnRecord event is a loop that loads the records by each row.

onLoad

This event runs when the application is finished loading.

onRefresh

This event runs when the refresh option of the application is enabled.

onValidate

This event runs when validating the information of the fields, when submitting the form.

onValidateFailure

This event runs when the form validation gives an error.

onValidateSuccess

This event runs when the form validation does not give an error.

onBeforeInsert

This event is executed before inserting a record from the application.

onAfterInsert

This event is executed after inserting a record from the application.

onBeforeInsertAll

This event runs before inserting all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.

onAfterInsertAll

This event runs after inserting all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.

onBeforeUpdate

This event is executed before updating a record from the application.

onAfterUpdate

This event is executed after updating a record from the application.

onBeforeUpdateAll

This event runs before updating all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.

onAfterUpdateAll

This event runs after updating all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.

onBeforeDelete

This event runs before deleting the records from the Form.

onAfterDelete

This event runs after deleting the records from the Form.

onBeforeDeleteAll

This event runs before deleting all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.

onAfterDeleteAll

This event runs after deleting all the selected records from the Multiple Records, Editable Grid and Editable Grid (View) Form.