
Hi, I'm copying data from one table to another(ie; Gen. Journal Line) using table.validate(), if validation fails it shows system's default error but it doesn't show on which record the validation failed, I want to include document no or id in the error message. How i can achieve this ?
thanks.
You cannot modify a standard table's field OnValidate code (at least on SaaS, onpremise you could do that by modifying the Microsoft Base Application, but it's absolutely not recommended). You can only attach to events (for example OnAfterValidateEvent of a field) and trigger your code from here.