web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

CustTrans_Extension object does not have method 'displayCustRef'. EDIT method

(0) ShareShare
ReportReport
Posted on by

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:

pastedimage1646307418467v1.png

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

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Akbar,

    Please share the control you added along with the properties for this control.

  • Akbarpasha Profile Picture
    on at

    Hi Gunjan,

    control and Properties:

    pastedimage1646309266982v2.png

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Akbar,

    Try changing the data method property to CustTrans_Extension.displayCustRef and check if the issue is resolved.

  • Akbarpasha Profile Picture
    on at

    Thank you very Gunjan using CustTrans_Extension.displayCustRef, that error has resolved.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 593 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 543

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans