so i extended the form of SalesTable and copyied the On Validating event handler to a new class but I do not know how can I get the value the SalesPrice field to check if it is zero or not.
{
/// <summary>
///
/// </summary>
/// <param name=/sender/></param>
/// <param name=/e/></param>
[FormControlEventHandler(formControlStr(SalesTable, SalesLine_SalesPrice), FormControlEventType::Validating)]
public static void SalesLine_SalesPrice_OnValidating(FormControl sender, FormControlEventArgs e)
{
FormRun formRun = sender.formRun();
FormDataSource salesTable_DS = formRun.dataSource(FormDataSourceStr(SalesTable,SalesLine));
}