Hi All,
We are getting the below error while opening the form post added the EDIT method in CustTrans table as extension:
Error executing code: CustTrans_Extension object does not have method 'displayCustRef'.
Able to see field is added in the CustTransOpen form with empty values and with the above error:

below is the code:
[ExtensionOf(tableStr(CustTrans))]
public final class CustTrans_Extension
{
edit CustomerReference displayCustRef(boolean _set,CustomerReference _customerReference)
{
CustInvoiceTable custInvoiceTable;
str ret;
select forupdate custInvoiceTable
where custInvoiceTable.InvoiceId == this.Invoice;
if(custInvoiceTable)
{
_set = true;
}
if (_set)
{
ttsbegin;
custInvoiceTable.CustomerRef = _customerReference;
custInvoiceTable.update();
ttscommit;
}
else
{
ret = custInvoiceTable.CustomerRef;
}
return custInvoiceTable.CustomerRef;
}
}
Please let us know Is there any changes required in the above code.
Regards,
Akbar