Posts

Showing posts from June, 2022

Modified Event Hanlder Examples

// FormControlEventHandler   [FormControlEventHandler(formControlStr(VendTable, Payment_PaymMode), FormControlEventType::Modified)]     public static void Payment_PaymMode_OnModified(FormControl sender, FormControlEventArgs e)     {         FormStringControl  callerButton = sender as FormStringControl ;  //Retrieves the button that we're reacting to         FormRun element = callerButton.formRun();         FormControl Payment = element.design(0).controlName("Payment_PaymTermId");         if(callerButton.valueStr()=='CHECK')         {             Payment.allowEdit(false);         } else         {             Payment.allowEdit(true);         }     }                   ...