DataEventType::ValidatedField in d365
[] public static void FMVehicle_onValidatedWrite(Common sender, DataEventArgs e) { ValidateEventArgs validateArgs = e as ValidateEventArgs; FMVehicle vehicle = sender as FMVehicle; boolean result = validateArgs.parmValidateResult(); if (vehicle.NumberOfCylinders > 8) { result = checkFailed("Invalid number of cylinders."); validateArgs.parmValidateResult(result); } }
Thanks,
Vikas Mehta
No comments:
Post a Comment