Auto Generated Field Value on Primary Key Field

Dear Gurus,

I created my own auto generated field for invoice number, this number will be inserted into PK in order table,
I manage to generate the field made in BeforeInsert event, but when I press the save button, it prevents and required me to fill the order field.

How can i bypass this “required field must be filled” and proceed to beforeinsert event ?

thanks

i just turn off the required check mark for the PK field. hope nothing wrong by doing something like this.

thanks

That is Correct for your problem.

thank you…:slight_smile: