I created a custom processing screen. At the end of the processing, I want to create a results report.
public static void DoIt(List<UploadFileRevision> lineList, RecordsToProcessFilter currentFilter, bool isMassProcess = false)
{
DO ALL MY PROCESSING HERE
At the very end:
if (results.GetRowCount() > 0)
{
throw new PXReportRequiredException(results, "IC604010", PXBaseRedirectException.WindowMode.NewWindow);
}
}If I have the PXReportRequiredException, the processing screen does not show the processing popup. It also does not refresh the grid of items that are available to be processed (remove the items that were processed). The report opens in a new window and it looks great.
If I comment out the report redirect, the screen works perfectly.
Is there a way to create my results report and not break the standard processing screen? I don’t absolutely have to have the report, but it is a nice feature.
I am wondering if I can trigger the report to run after you click the button to close the processing output dialog. However, at that point, I don’t know if the DAC storing my results will still be available. The results DAC is not an actual table.