Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

how to get the customization done in stand. class through code in ax 2012 r3

(0) ShareShare
ReportReport
Posted on by 22

Hi All,

can you please let me know is it possible to get the customization done in stand. class like "PurchFormletter"

Suppose we have 2 new methods and added code in standard method.

for example -- 

Class decleration --  added few codes

2 new methods.

I wants to write a job which return me the name of methods

class declaration

and 2 new methods.

is t possible?

please give me more shed on this.

thanks!

  • Martin Dráb Profile Picture
    233,017 Most Valuable Professional on at
    RE: how to get the customization done in stand. class through code in ax 2012 r3

    Both these macros are defined in the macro library 'AOT'. You forget to copy #AOT from the blog post. By the way, I think that findNode(#ClassesPath) is sufficient (if you need a path delimiter at some point, use #AOTDelimiter, not #AOTRootPath).

    Also, you misunderstand the code. #ClassesPath is a path to all classes, not to an individual class. The code iterates all classes - treeNodeClasses.AOTfirstChild() will give you the first one. That the developer used the same variable for the parent node of all classes and for individual classes indeed makes things a bit confusing.

  • @rp@n Profile Picture
    22 on at
    RE: how to get the customization done in stand. class through code in ax 2012 r3

    thanks martin

    here

    treeNodeClasses = TreeNode::findNode(#ClassesPath + #AOTRootPath);

       treeNodeClasses = treeNodeClasses.AOTfirstChild();

    #ClassesPath =  need to mentioned specific class name ?

    #AOTRootPath = ??

    please give me more shed on this.

    thanks!

  • Suggested answer
    Martin Dráb Profile Picture
    233,017 Most Valuable Professional on at
    RE: how to get the customization done in stand. class through code in ax 2012 r3

    I think the information is pretty useless to anybody, and especially to a project manager. Method names without any context give little value and it has nothing to do with project management. If I was you, I would ask the PM about his/her business requirements and they we would look at how to address them. I doubt there is a project management problem that can be meaningfully addressed by a list of methods.

    But if you want to do it anyway, look at and TreeNode* classes, for instance. Here is something like what you're up to.

  • @rp@n Profile Picture
    22 on at
    RE: how to get the customization done in stand. class through code in ax 2012 r3

    yes, actually my project manager asked me to give the list in excel sheet which contained the detsil list of standard classes with methods ( if the object has custmized).

    Please give me more shed on this.

    thanks!

  • Martin Dráb Profile Picture
    233,017 Most Valuable Professional on at
    RE: how to get the customization done in stand. class through code in ax 2012 r3

    Yes, it's possible. Can you please explain what exactly are you doing, so we can suggest a solution best suited to your business needs?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans