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, ...
Suggested Answer

Add display method to form Data source using extension

(0) ShareShare
ReportReport
Posted on by

I try to add display method to form data source using  extension to the form data source itself . The project is built successfully   but when I try to browse the form  I receive an error that the method do not exist , how can I add display method to form data source in my case  I cannot use table display method since I need a value from another data source  on the same form to retrieve the values 

I have the same question (0)
  • Suggested answer
    Adria Ariste Profile Picture
    User Group Leader on at

    The problem with form datasource displays is that they usually had a buffer parameter and I think this isn’t working on extensions very well.

    If you create a table extension to create the display method you can get the datasource using this.datasource() (I think) and from there you can try to access the other DS from which you need the data.

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    On field property, you have to use objectname.display method. For example, if you created extension as abc_extension and added display method in this class then use abc_extension.methodname

  • WillWU Profile Picture
    22,363 on at

    Hi Maram,

    If you want  extra value from another DS in your form , you can create a table extension from the other table and write the display method.

    pastedimage1570765064453v1.png

    The following diagram shows how to use the method In the form that you need the value .

    pastedimage1570765095892v2.png

    I hope that these help to you, any problems please let me know

    Best Regards,

    Will

  • Nastaran Profile Picture
    290 on at

    Dear maram,

    display methods which are written in formdatasource extension are shown in this format in the data method: classextensionName.displaymethodName.

    For example if you have added calcAmount display method to vendinvoiceJournal_vendInvoiceJourDS_Extension then you will see vendinvoiceJournal_vendInvoiceJourDS_Extension.calcAmount in the data method property

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans