Occurs after all checks before data insert are passed but before an application posts changes for this new record to the database. This event allows to cancel record insertion.
Syntax:
type
TPostDataEvent = procedure(Sender: TObject; var Allow: boolean) of object;
property OnInserting: TPostDataEvent;
Description:
Use this event if you need to check some custom conditions before insert record to database and
disable this insert in some cases. If you'll set Allow parameter value to False DAC for
MySQL will not insert this record.