Hi;
I need to add a string field to "custinvoiceJournal" form and make this field (only) editable. This is just an informative field.
As you know, this form's dataSource "custInvoiceJour" property "AllowEdit" is set by default as False.
I made 2 extensions: one for the table, the other is for the form and added my new field.
Then I used the "OnInitialized" form event Handler to make this field editable. However, this didn't work.
The field still disabled.
[FormEventHandler(formStr(CustInvoiceJournal), FormEventType::Initialized)]
public static void CustInvoiceJournal_OnInitialized(xFormRun sender, FormEventArgs e)
{
FormRun fr = sender;
FormDataSource fds = sender.dataSource(formDataSourceStr(CustInvoiceJournal,CustInvoiceJour));
fds.object(fieldNum(CustInvoiceJour,MyField)).allowEdit(true);
}
I also tried using COC on the init() form method, and still not working..
Am I missing something here?