Notifications
Announcements
No record found.
Hello Every One,
Is it possible to get the the data type of the method that is returning? Like I have a table method that is returning boolean using x++ how do i get it ? Even if their return type is an edt also would like to get the data type of it as well?
Same like for table fields we are are able to get it using dictfield.baseType().
Is there any way that I can get it?
Thanks,
Phani
Hi Phani,
I propose you write a method to check this. in this method you can use some system's method like isInteger(input_int) to check it.
Hi Hossein Karimi ,
Thanks for your reply.
I am not talking about the value that the method return. when we look at the method code we understand the return type of it. I just want to write some x++ code to pull it. is it possible?
Hi,
I said you can develop a method and in this method write a switch case and check all state with the method which I sent you.
Hi Hossein Karimi,
It seems my question itself not clear to you.
Eg1:
public boolean valid()
{
// some code here
}
eg 2:
public Amount Price()
from the eg1 I have to take boolean. and in eg 2 Amount is Extended data type in turn which gives Real data types .
I want to get thoes two data types and show in info log.
You've already got answers in your previous thread, "Is it possible to get the method return type in Ax2012?" (community.dynamics.com/.../is-it-possible-to-get-the-method-return-type-in-ax2012). Please read them. If you have a follow-up question, ask it there, rather then creating a duplicate thread about the same thing and starting the whole discussion from the very beginning, as if you never read any answers.
Hi Martin,
In the above thread there is no code to find the Extended data type type. I am which type that is extended in edt. So instead of asking in the previous thread I created new one.
There is code to find the return EDT - I told you which method to use (SysDictMethod.returnId()) and Ergün then gave you sample code.
If you have a problem with it, please explain the problem in the original thread.
If you just ask the same question, all we could do is giving you the same answer.
Note that I don't understand the sentence "I am which type that is extended in edt". If it was going to say something important, please rephrase it.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader