Hi @mhaps,
Have you tried with FieldUpdated event instead of RowInserting?
Also, can you please us know, on what scenario/condition you want to display error message?
That is a good idea @Naveen B. PXSetPropertyException with PXErrorLevel.RowError fired in FieldUpdated marks the Row as Invalid.
That solves my problem.
The aim is to limit the entries in the grid.
First try was setting AllowInsert. But that is not reliable, it seems to be set back after event handling.
Thanks!
@mhaps
First try was setting AllowInsert. But that is not reliable, it seems to be set back after event handling.
I agree with you :thumsup
Great Thanks a lot for the verification and update.