Dear All.
Am trying to make unit of measure mandatory in the purchase line but it's not working. Below is my AL code.
Any suggestion?
Ramy,
Below is my code and its not working.
Modify("Unit of Measure")
{
trigger OnAfterValidate()
begin
//If (Rec."Unit of Measure" = '') then
TESTFIELD("Unit of Measure");
//Error('The Unit of Measure cannot be empty.');
end;
}
Missing AL code but you can take a look at this post it can assist in your case.
Sohail Ahmed
944
YUN ZHU
843
Super User 2025 Season 1
Mansi Soni
602