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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to Use Table Display Method in Data Entity

(0) ShareShare
ReportReport
Posted on by 170

Hi,

Here I'm facing difficulty in adding the table display method in Data Entity.

I'm trying to add warrantyDateToVend() method from EntAssetObjectTable into EntAssetMaintenanceAssetEntity. So, I have created an unmapped date field and created  "WarrantyDateToVend" field and I have created an extension class for PostLoad() to write this same display method.

public void postLoad()
    {

        next postLoad();

        if(this.WarrantyVend && this.WarrantyDateFromVend)
        {
            this.WarrantyDateToVend = max(this.WarrantyDateToVend, this.parmWarrantyVend().endWarrantyDate(this.WarrantyDateFromVend));
        }
    }

    public EntAssetWarranty parmWarrantyVend()
    {
        return EntAssetWarranty::findRecId(this.WarrantyVend);
    }

Bt endWarratydate() method is an internal method in EntAssetWarranty, so it is throwing an error that I can't use internal methods in another model. I want to know that is there any way to add WarrantyDateToVend() method in Data entity.

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Ax Trainee,

    Please refer to the old thread for the same issue:

    community.dynamics.com/.../how-to-add-table-display-method-values-in-the-data-entity

  • Ganesh Potnuru Profile Picture
    170 on at

    Hi Judy,

    I can add through virtual field bt i need to add one method which is there in EntAssetWarranty table and it is internal method so I'm unable to use it, is there any possibility to use this method in my model?

  • Verified answer
    huijij Profile Picture
    19,811 on at

    Hi Ax Trainee,

    Maybe it not.D365 Display methods can actually be added to multiple objects. They can be added as Table methods, form methods, form data source methods, report methods, and report design methods.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Ax Trainee,

    You can copy the code from the method endWarrantyDate() and apply it in your data entity. Just like you did with parmWarrantyVend().

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans