beforeInsert
The event occurs before inserting values into database and can cancel default insert statement or validate incoming values.
$conn->event->attach("beforeInsert",handlerFunc);
Parameters handlerFunc:
- $action - DataAction Object
Availability:
- Available for Grid, TreeGrid, Tree, Scheduler, DataView, Form
Sample:
- See related beforeUpdate sample.