class IPLVendTableTriggerForm_EventHandler
{
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
[FormDataSourceEventHandler(formDataSourceStr(VendTable, VendTable), FormDataSourceEventType::Activated)]
public static void VendTable_OnActivated(FormDataSource sender, FormDataSourceEventArgs e)
{
VendTable vendTable = sender.cursor();
FormDataSource vendTable_ds = sender.formRun().dataSource("VendTable");
FormRun element = sender.formRun();
FormControl processTo = element.design(0).controlName("BISTrigger_ProcessTo");
if(vendTable.ProcessTo == NoYes::Yes)
{
processTo.enabled(false);
}
else
{
processTo.enabled(true);
}
}
}
No comments:
Post a Comment