{-- code to get pricing info --} VALIDATE("Unit Price", priceVariable); {-- end of code to get pricing info (loops and if statements no need to display) --} VALIDATE("Quantity", 1); {-- code that was already in the No. Validate method--} NoOnAfterValidate; UpdateEditableOnRow; ShowShortcutDimCode(ShortcutDimCode); IF xRec."No." <> '' THEN RedistributeTotalsOnAfterValidate;
Answers
I suggest you adding your code in Table object, and even better to use event to subscribe "OnAfterValidateEvent" of "No." in "Sales Line" table.