Which is the order of execution of events in a form?

Hi, i need to know how works the event ONBEFOREINSERT. I thinked that this event is executed when the validations of requeride fields are validate. But is not works of this way.

I need assign a value to a field and insert a new record in other table in this event OnBI, but when the validations are fine.

currently if a user does not fill all fields requerides, the event ONBEFOREINSERT is executed and insert a new value in other table. (this must insert just when the validations pass the test).

Or which is the way correct for do it.

Re: Which is the order of execution of events in a form?

Hello,

You could do it after the validation is succeeded onValidateSuccess(). Or after it is inserted onAfterInsert().

regards,
Bernhard Bernsmann