Feedback Print

Events

Within the events you can include Scriptcase global and 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); }

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.

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.