New Field in Sales line Table

I Created a new fied X, Type = Date, on sales line table.

In Form sales Line, I have the new Field and the next field is Item No.

when I Iinsert a record in sales lines, after input field X, on insert of Item No., the new field X is cleaned. Why is That?

Thanks

I suppose this happens because of the INIT in the OnValidate trigger on field “No.” of Sales Line.

In this trigger current record is saved in a temporary buffer, then the line is cleared.

TempSalesLine := Rec;

INIT;

After that the data is restored from the buffer and validated. You’ll have to customize this trigger and add your field here if you want to fill it before item no.

Thanks

Alexander, your solutions was ok.

Regards