Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Best approach to duplicate a standard Report and its related Classes and Tmp tables.

(0) ShareShare
ReportReport
Posted on by

I have a SalesInvoice report that is customized in the report Parameter form, Report Layout and Classes with logic. Customizations includes on all related standard TMP tables,Classes,Report Layout etc.

Now I have a requirement to bring back the standard report(without customizations in Parameter form, Layout, Classes) and make an option to run both standard and custom report in two menu items.

Basically I am trying to have 2 versions of Sales Invoice report 1-Standard 2-Standard+custom.

I can try removing customizations and bring the report back to standard, but I will not have custom report anymore.

If I try importing the custom xpo back, my changes will come back on the same salesInvoice report.

But instead would like these changes to happen on complete new custom report.

Should I create an exact duplicate of standard SalesInvoiceReport and manually compare and add my custom changes to the duplicate report? My worry is SalesInvoice is a vast report, duplicating sounds a bit risky in case I miss any related objects.

I was thinking if it was only Layout I can create a new design, but Parameter form is also modified(contract class).

What is the best approach to achieve this.

*This post is locked for comments

  • Suggested answer
    István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: Best approach to duplicate a standard Report and its related Classes and Tmp tables.

    Hi,

    The contract, controller and DP classes can be duplicated inside AOT. You can use the same parent class SalesInvoiceDPBase for your modifications , no need to duplicate that one. SalesInvoiceTmp can remain the same, maybe you can add you customized fields if there is any (be aware that it is a regular table as the parent class is derived from SrsReportDataProviderPreProcess). The report layout can be duplicated inside Visual Studio, so no need to create a new one just a new layout. You can use multiple layouts in SSRS from the controller class like this:

    formLetterController.parmReportName(PrintMgmtDocType::construct(PrintMgmtDocumentType::SalesOrderInvoice).getDefaultReportFormat());
  • Verified answer
    BorisD Profile Picture
    BorisD 2,826 Moderator on at
    RE: Best approach to duplicate a standard Report and its related Classes and Tmp tables.

    Hello Sabarish,

    Please see the blog in the link below. I believe this will help you achieve what you want.  

    community.dynamics.com/.../dynamics-ax-2012-how-to-duplicate-the-existing-report-for-modification

    Hope this helps!

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February 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... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans