Scriptcase uses the concept of events to enable the developer to customize application code. Events allow the developer to define custom actions at a specific execution time (e.g. After a record is inserted, when it is loaded, upon submitting a form, ...) and for a specific type of application.
onApplicationInit - Occurs once when the application is loaded (first time).
onScriptInit -Occurs when the application is loaded
onRefresh -This event is executed during the application page reload.
onValidateSucess -Occurs when validation is successful. .
onValidateFailure -Occurs when a validation failure is found.
onValidate - This event is executed by clicking on validation buttons (ok, update, insert, delete, search) depending on the used application. In case of form the buttons are: update, insert and delete.
onLoad - This event occurs when the browser loads the window.
Any event can use pre-defined functions (macros) that are available in Scriptcase. These functions are called "Scriptcase Macros".