Hi,
I needed to create a new action menu item for a report. It has to be exactly like the Pro forma confirmation menu item however it needs to print a new report.

To do this, I extended the FormLetterJournalPrint class to be able to handle the new version of the SalesConfirmJournalPrint class I made.

Here it points to the CustConfirmJour table where I extended it to be able to handle a new method where it points to the ouput menu item I created.

In the picture below you can see I call the new menu item below which then calls the extended controller class SalesConfirmController

In the extended SalesConfirmController I have 2 reports, I want it to be able to choose based on if they selected the Commercial Invoice menu that I had made earlier. This is the main and below it will be the ouputReport method I also modified to help show the selected report.


The problem is that when it goes through the "else" in the main where it picks "SalesInvoiceReport", it will show all the data since it is from the original "salesConfirmation" output menu. However when it goes through the CommercialSalesInvoiceReport and it uses the new menu I made the report ends up with empty data.

Does anyone have any ideas why the report for the customized SalesInvoiceReport will show all the data but for the customized CommercialInvoiceReport with the new menu item will give me empty data?
Best Regards,
Paulina