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 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?
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.
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
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.
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
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.
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,309
Most Valuable Professional
nmaenpaa
101,156