Wednesday, 12 August 2020

DataEventType::ValidatedField in d365

 DataEventType::ValidatedField in d365

[DataEventHandler(tableStr(FMVehicle), DataEventType::ValidatedWrite)] 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

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...