I'm trying to create an X method which will setup an event handler that is data-driven. In other words data in a table will define which form, field and event will have an event handler created for it.
Something like this, where the form name and field name are passed into a method
public static void CreateEventHandler(str formName, str fieldName)
{
[FormControlEventHandler(formControlStr(formName, fieldName), FormControlEventType::Clicked)]
public static void Test_OnClickedEvent(FormControl sender, FormControlEventArgs e)
{
xFormRun formRunObjectr = sender.formRun();
}
}
Can run-time event handlers be created or are event handlers defined at compile time?
Thanks for any assistance.
Duane