Skip to content

Instantly share code, notes, and snippets.

@d47447
Created February 24, 2019 20:36
Show Gist options
  • Select an option

  • Save d47447/b11e8d15d5fb2195409f041b1ffcffed to your computer and use it in GitHub Desktop.

Select an option

Save d47447/b11e8d15d5fb2195409f041b1ffcffed to your computer and use it in GitHub Desktop.
Table event handler OnValidatedField
[DataEventHandler(tableStr(CustTable), DataEventType::ValidatedField)]
public static void CustTable_onValidatedField(Common sender, DataEventArgs e)
{
ValidateFieldEventArgs event = e as ValidateFieldEventArgs ;
CustTable custTable = sender as CustTable;
boolean result = event.parmValidateResult();
result = result && RegNumberValidator_BG::validate(custTable.AccountNum, custTable.RegistrationNumber_BG, CustVendACType::Cust);
event.parmValidateResult(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment