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 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? 

  • Martin Dráb Profile Picture
    Martin Dráb 231,309 Most Valuable Professional on at
    RE: How can we get form display method into view

    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.

  • rohit1900 Profile Picture
    rohit1900 433 on at
    RE: How can we get form display method into view

    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

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 231,309 Most Valuable Professional on at
    RE: How can we get form display method into view

    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.

  • telhan Profile Picture
    telhan 20 on at
    RE: How can we get form display method into view

    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
    Martin Dráb 231,309 Most Valuable Professional on at
    RE: How can we get form display method into view

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans