Hi, Im new in FO dev, and I will be very pleased if you guys can help me
anyways
Im trying to create a new field in Customer Open Invoices (settlement grid page ) with the name "Original Due Date" to save the due date when I postpone some Open Invoices payment, which I did using extend custran table and extend CustOpenInvoices Interface adding this field "Original Due Date"
After that Im trying to use FormControl Event Handler on modified event to send the data to the new field
Im using "Info" to show the date, just to know if I getting the due date value
And Im getting error

My Code
/// <summary>
/// Class para customer Open Transactions
/// </summary>
class Eur_CustOpenTran
{
/// <summary>
/// teste
/// </summary>
/// <param name="sender">Tela</param>
/// <param name="e">sera isso</param>
[FormControlEventHandler(formControlStr(CustOpenTrans, CustTransOpen_DueDate), FormControlEventType::Modified)]
public static void CustTransOpen_DueDate_OnModified(FormControl sender, FormControlEventArgs e)
{
FormRun formRun = sender.formRun();
FormRealControl FormControldDueDate = formRun.design().controlName(formControlStr(CustOpenTrans,CustTransOpen_DueDate));
FormControl formControldOrigDate = formRun.design().controlName(formControlStr(CustOpenTrans,CustTrans_Eur_OriginalDueDate));
str dDueDate= strFmt("%1", FormControldDueDate.realValue());
info(dDueDate);
}
}