[FormControlEventHandler(formControlStr(SalesTable, buttonUpdateConfirmation), FormControlEventType::Clicked)]
public static void buttonUpdateConfirmation_OnClicked(FormControl sender, FormControlEventArgs e)
{
FormRun formRun = sender.formRun();
FormDataSource salesTableDS = formRun.dataSource(tableStr(SalesTable));
SalesTable salesTable = salesTableDS.cursor() as SalesTable;
if (salesTable.SFACustAddress == '' || salesTable.SFAMobileNumber == '')
{
throw error("Both Customer Mobile Number and Address fields must be filled before confirmation.");
}
}
André Arnaud de Cal... 291,642 Super User 2024 Season 2
Martin Dráb 230,371 Most Valuable Professional
nmaenpaa 101,156