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, ...
Answered

How can we get form display method into view

(0) ShareShare
ReportReport
Posted on by 20

I have a display method in form which is returning a field value. but I need to get that same value in view 

How can it possible by creating method or any possible way? 

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

    It depends on what exactly you need and what logic is inside the method.

    For example, if the method depends on content of the form, it clearly can't be used outside this form.

    Otherwise you can write a similar method on the view and execute it after fetching the data.

    Or, if you want to be able to filter by the value, you can write a computed column. But then you can't reuse any code of the method, because the method is written in X++ while a view is a piece of T-SQL code. You would have to rewrite the display method to SQL, which might but doesn't have to be possible.

    Next time, please provide more details about your requirement, so we can immediately jump into what you need.

  • telhan Profile Picture
    20 on at

    I have InventOnhanditem form in data source  invent sum table is their  in that averagecostpriceunit() display method is their.

    I am creating view in that view what ever this method is return i have to show that value in view

  • Verified answer
    Martin Dráb Profile Picture
    240,081 Most Valuable Professional on at

    I think you didn't get any replies because your last reply doesn't seem to make any sense. Copying the text6 thing to a new thread doesn't solve this problem in any way.

    I suggest you read my previous reply again, think about which case applies to you and either try to implement a solution, or decide that it's not feasible to do.

    If you need an additional help, please explain what exactly you need.

  • rohit1900 Profile Picture
    439 on at

    Hi Martin I was looking for some standard view where they use display method in d 365 AOT view for inspiration.

    Can you let me know any example for the same

  • Martin Dráb Profile Picture
    240,081 Most Valuable Professional on at

    rohit1900, you should create a new thread in a D365 forum, rather then changing the topic of this answered thread in the AX forum.

    There we can discuss how you can use things like Metadata search to find such methods.

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 June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Subra Profile Picture

Subra 374

#3
Martin Dráb Profile Picture

Martin Dráb 218 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans