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 :
Microsoft Dynamics AX (Archived)

Purpose of edt(real) in display method

(0) ShareShare
ReportReport
Posted on by

what is exact purpose of edt(real) using in display method?

display real ReqQty()
{
    InventTrans     inventTrans;

     select * from inventTrans
        where     inventTrans.ItemId == Item_0001;//this.ItemId
       
    return inventTrans.Qty;
} 


*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,985 Most Valuable Professional on at

    It's not an extended data type (EDT), it's a primitive data type. You actually should use an EDT in this case, with the right label, so the field can be reasonable rendered in GUI.

    Anyway, it defines which type of value the method returns (it's the same for non-display methods). Using the real data type (or EDTs based on real) means that it returns a number, which - unlike int - can contain decimal places.

    You can learn more about data types in AX documentation.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Narayan,

          Based on extended data type the data will show perfect string length for return field in display method.I suggest Using return field edt in display method.

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    Hi Suresh,

    Thanks

  • Community Member Profile Picture
    on at

    Hi Martin,

    Thanks

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans