web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

new design to PurchPurchaseOrder report doesn't appear

(0) ShareShare
ReportReport
Posted on by 576

Hello everyone

First thing i duplicate PurchPurchaseOrderController class

Second edited PurchPurchaseOrder VS project  and added new design after it deploy 

now there is 4 design appeared in PurchPurchaseOrder  report 

then in controller  made some changes as next code

public static SrsReportDataContract newDataContract(Args _args)
{
    PurchPurchaseOrderControllerEGC formLetterController = PurchPurchaseOrderControllerEGC::construct();

    if (_args.dataset() != tableNum(VendPurchOrderJour))
    {
        throw error(strFmt("@SYS19306",funcName()));
    }

    formLetterController.initDataContract(_args, ssrsReportStr(PurchPurchaseOrder, EGCDesign));

    return formLetterController.parmReportContract();
}


the new design is named EGCDesign

public static void main(Args _args)
{
    SrsReportRunController          formLetterController = PurchPurchaseOrderControllerEGC::construct();
    PurchPurchaseOrderControllerEGC    controller;

    if (TradeFormHelper::isCalledFromForm(_args, formStr(VendPurchOrderJournalListPage)))
    {
        _args.record(VendPurchOrderJour::findRecId(_args.record().RecId));
    }

    controller = formLetterController;
    controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, EGCDesign));

    if (classIdGet(_args.caller()) == classNum(PurchPurchOrderJournalPrint))
    {
        formLetterController.renderingCompleted += eventhandler(purchPurchOrderJournalPrint::renderingCompleted);
    }

    formLetterController.startOperation();
}


then create Output menuitem  as next pic

controller.png

the controller class is the new duplicated class

but when i open the new menu item the default report is working not the new report

thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    István Orosz Profile Picture
    2,137 on at

    Hi,

    Just guessing, but maybe you can check the print management settings, layout can be set there also:

    Kind Regards,

    István

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans