1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | class FactoringManagement_LedgerExtension_TableHander { [DataEventHandler(tableStr(FactoringManagement), DataEventType::ValidatedField)] public static void FactoringManagement_onValidatedField(Common sender, DataEventArgs e) { ValidateFieldEventArgs validateFieldEventArgs = e as ValidateFieldEventArgs; FactoringManagement factoringManagement = sender as FactoringManagement; boolean result; switch (validateFieldEventArgs.parmFieldId()) { case fieldNum(FactoringManagement, PercentMax) : if (pwFactoringManagement.PercentMax > 100) { result = validateFieldEventArgs.parmValidateResult(); result = checkFailed(strfmt("Factoring percentage cannot be greater than 100")); validateFieldEventArgs.parmValidateResult(result); } break; } } } |
miércoles, 18 de octubre de 2017
D365 -DATA EVENTHANDLER ON TABLE VALIDATIONS
Suscribirse a:
Enviar comentarios (Atom)
great !!
ResponderEliminar