Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Printing dynamic parameters (AX 2012 / SSRS)

Posted on by 120

Hi Friends

I have try to apply this script http://dev.goshoom.net/en/2014/09/showing-dynamic-parameters/

to my LedgerJournalPostControlDP

but I am getting this Error  MyQueryUtils is not a class. when complying this class  public void processReport()

and the only line I have added  

//Added by Jamil Alshaibani in 26/3/2019

 tmpSysQuery = MyQueryUtils::rangesToTable(this.parmQuery());

// END7840.PARAMETERS.png

How to make the MyQueryUtils as not a class and what I have to write in it.

Best Regards

Jamil Alshaibani

*This post is locked for comments

  • RE: Printing dynamic parameters (AX 2012 / SSRS)

    Hi Dear Sir, Mr. Martin

    Thank you very much for your help.

    Best Regards

    Jamil Alshaibani

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: Printing dynamic parameters (AX 2012 / SSRS)

    You can find information in older threads, because you're not the first one trying to learn AX development. Here is one example: How can I Learn X ++ Language ?.

    Regarding how to create a class, you can find it in documentation under Declaration of Classes. But as I mentioned in the thread above, this won't teach you principles of object-oriented development and other critical skills. Fortunately these days, you can find a huge amount of information on the internet.

    Also, don't forget to learn how to use version control systems such as Azure DevOps.

  • RE: Printing dynamic parameters (AX 2012 / SSRS)

    Hi Dear sir, Mr. Martin
    I would like to become a developer and write production-quality code for my project , but I was actually an oracle developer in our factory and our factory change the system from oracle to Dynamics AX 2012 and they did not give me any training at all , so I have to manage the requirement of the management and learn as much as I can so that I well not lose my job

    If you can give me a site that will help me to learn the Basics of programming in Dynamics AX 2012,
    I will be thankful and appreciate you for helping me

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: Printing dynamic parameters (AX 2012 / SSRS)

    Is your intention to become a developer and write production-quality code for your project, or what's your goal?

    Basics of programming means much more than being able to create a class and designing solutions for mission-critical business applications require more than just the basics.

  • RE: Printing dynamic parameters (AX 2012 / SSRS)

    Hi ievgen

    Thank  you for your replay we do not have developer and I am learning the Microsoft Dynamics AX 2012 can you give me the like to learn the basic of create  Class and putting  the code of rangesToTable() method  as I do not have that much Expenses  

    Best Regards

    Jamil

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: Printing dynamic parameters (AX 2012 / SSRS)

    Even if it was there, you shouldn't use it. MyQueryUtils isn't a good enough name for production code; it was used just for an example of where to put the code. Create a class name according to your company's best practices and put the code of rangesToTable() method there.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Printing dynamic parameters (AX 2012 / SSRS)

    Create new class, name it MyQueryUtils and add this method there. If you don't understand what to do ask your developer to help.

  • RE: Printing dynamic parameters (AX 2012 / SSRS)

    Hi ievgen

    MyQueryUtils is not mentioned in the blog but the rangesToTable it is there in the blog can you help me .

    Best regards

    Jamil Alshaibani

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Printing dynamic parameters (AX 2012 / SSRS)

    You have to create new class if you need it and call MyQueryUtils. Source code of rangesToTable method could be find in the blog post, so create new class, name it MyQueryUtils, add new method rangesToTable  and paste code from the blog into 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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans