Skip to main content

Notifications

Announcements

No record found.

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 

  • Nastaran Profile Picture
    288 on at
    RE: Add display method to form Data source using extension

    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

  • WillWU Profile Picture
    22,352 on at
    RE: Add display method to form Data source using extension

    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

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at
    RE: Add display method to form Data source using extension

    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

  • Suggested answer
    Adria Ariste Profile Picture
    User Group Leader on at
    RE: Add display method to form Data source using extension

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,157 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,930 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans