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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to compare display method value with another field real value?

(1) ShareShare
ReportReport
Posted on by 204
Hi,

I have a field of type real in a table, which I need to compare if that value is < or = with a display method value. Based on that condition, I need to perform some actions, How can I achieve this?

For example: (Field value) 100.00 < 102.00 (Display method value).
If(100.00 < 102.00)
{
 MyLogic;
}

 
I have the same question (0)
  • Layan Jwei Profile Picture
    8,282 Super User 2026 Season 2 on at
    Hi RSX,
     
    What's the return type of the display method, is it also real?
     
    Did u try this?
    If(Table.Field < table.displayMethod())
    {
    }

    Thanks,
    Layan Jweihan 
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,826 Super User 2026 Season 1 on at
    Hi,
     
    you must call the display method in comparison
     
    e.g.
    if(SalesTable.CashDisc == SalesTable.amountDelivered())
    {
        //your logic here
    }
    
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Waed Ayyad Profile Picture
    9,214 Super User 2026 Season 2 on at
    Hi,
     
    Yes, you can you need to select your record using Find or select statement.
     
    Let us assume your table name Table1, Field Field1, display method displaymethod1()
     
    you can compare it in If statement:
     
    Table1 table1;
     
    if (table1.Field1 <= table.displaymethod1())
    {
      //Perform your logic
    }
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans