Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

back original design sales order report

Posted on by 2,016

Greeting everyone i did customization on sales order report and i was flow this steps

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/396915/how-modify-ssrs-reports-in-d365

anyway now i want back original design how can i retrieve as was before

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: back original design sales order report

    actually i need get back the original design

    and i want add my custom design with new button (menuitems)

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: back original design sales order report

    Are you trying to get back the original design of the report, or add your custom design to Print management?

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: back original design sales order report

    thanks for replay

    but how can i add the custom report to Print management

    i checked the link but i found nothing

    blogs.msdn.microsoft.com/.../

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: back original design sales order report

    ok i did but still printing my customization report and not shown original report

  • Suggested answer
    vinitgoyal2005 Profile Picture
    vinitgoyal2005 6,330 on at
    RE: back original design sales order report

    Hi,

    Assuming you need both custom and original report do below. If you want to delete custom and get only original then as suggested by Nikolaos, delete all objects.

    Your Custom controller class should like below:

    class CustomSalesInvoiceController extends SalesInvoiceController
    {
    
        public static CustomSalesInvoiceController construct()
        {
            PgonSalesInvoiceController controller = new CustomSalesInvoiceController();
    
            return controller;
        }
    
        public static void main(Args _args)
        {
            SalesInvoiceController formLetterController = CustomSalesInvoiceController::construct();
            formLetterController.parmArgs(_args);
            formLetterController.parmReportName(ssrsReportStr(CustomSalesInvoice, Report));
            formLetterController.parmShowDialog(false);
            formLetterController.parmDialogCaption("@SYS22766");
            formLetterController.startOperation();
        }
    
    }

    You have created 2 objects, assigned value to 1, and used other to start the report execution.

    There is code missing to add the custom report to Print management. To do that check thread https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/209395/print-management-adding-new-design?pifragment-96834=1

    In the screenshot, you added where you are setting a custom report name to be used in print management will give an error. 

    When you are using original/copy option to print it will take a custom report because that is what you set in getDefaultReportFormatDelegate method.

    When you use print management then whatever is set in print management will be used. 

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: back original design sales order report

    Delete all these objects and build your custom module. Then you can get rid of it.

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: back original design sales order report

    sorry for late respond

    here's my project I've created 

    as you see here

    s1.JPG

    i've only created new design as i selected down here

    s11.JPG

    class

    s2.JPG

    menu item output

    7801.s3.JPG

    class

    5618.s4.JPG

    that's all 

  • Suggested answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: back original design sales order report

    Object reference is something coming from your custom code . If you have any custom code written  in print management classes comment it or if it not required remove  it , build your system and then try to  print report again.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: back original design sales order report

    Could you share all code that you developed when you were working with this report? Thanks!

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: back original design sales order report

    thanks for replay 

    here settings when i'm useing my customization report and it printing my customization report

     d365cutstmo.JPG

    and when i return settings to default still printing my customization report and not shown original report

    d365org.JPG

    also i try to print as you said print management setup i got this error as you see below

    d365mang.JPG

     

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans