How to limit maximum quantity of record on table in AX2012?

Hello,

On Ax2012, I have a table, on which I would like to have limit of 4 records. is there a table property that will allow me to restrict maximum number of records or should I override the method?

Thanks in advance!

There is no such a property. You can put a validation to validateWrite() method.

Yes thank you works perfectly fine.