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.
onInit - This event is executed in an unique time, before executing the application SQL Select Statement. In this scope, normally macros are executed that modify the SELECT command. For example: sc_select_field, sc_select_order, sc_select_where(add) and etc.
onRefresh - Occurs when the application is loaded.
onValidate - Is executed before submitting the form.
onSave - Runs when the application is saved.
Any event can use pre-defined functions (macros) that are available in Scriptcase. These functions are called "Scriptcase Macros".