Hello everyone,
How can I override the lookup method for MarkedInvoice data source field in LedgerJournalTransCustPaym(Form)? I tried this approach but it won't allow me to replicate the lookup method in my ExrensionOverrideClass
Goal: Trying to change the line
args = new Args(formStr(CustOpenInvoicesLookup));
and insert my own form like args = new Args(formStr(CustOpenInvoicesLookupCustom));
[DataField]
class MarkedInvoice
{
...
...
//
// Displays a custom lookup form that provides the user with the means of selecting
// a MarkedInvoice record filtered by the AccountNum (customer) field.
//
public void lookup(FormControl _formControl, str _filterStr)
{
FormRun formRun;
Args args;
args = new Args(formStr(CustOpenInvoicesLookup));
args.record(ledgerJournalTrans);
args.caller(element);
args.lookupValue(ledgerJournalTrans.MarkedInvoice);
if (_filterStr != '')
{
args.parm(_filterStr);
}
formRun = ClassFactory::formRunClassOnClient(args);
formRun.init();
this.performFormLookup(formRun, _formControl);
}
...
...
}Screenshots below are from my ExtensionOverrideClass



Thanks everyone