[FormDataSourceEventHandler(formDataSourceStr(SalesTable, SalesTable), FormDataSourceEventType::Refreshed)]
public static void SalesTable_OnRefreshed(FormDataSource sender, FormDataSourceEventArgs e)
{
FormRun formRun = sender.formRun();
FormDataSource salesTable_ds = sender;
SalesTable salesTable = salesTable_ds.cursor();
FormControl buttonUpdateConfirmation = formRun.control(formRun.controlId('button'));
if (salesTable.active == NoYes::Yes)
{
buttonUpdateConfirmation.enabled(true);
}
else
{
buttonUpdateConfirmation.enabled(false);
}
}
No comments:
Post a Comment