Go to Scriptcase store

# onScriptInit - Search

This event occurs whenever the application is loaded, or reloaded.
This event occurs when the application its loaded, or reload. Occurs before the application runs the SQL statement, so using this event it is possible to modify the grid SQL statement dynamically, based on any logical. Macros frequently called on this event: sc_select_field, sc_select_order, sc_select_where(add), etc.