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
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)

Report
All responses (
Answers (