These are the steps to create a sub report from a new Report Data Definition (RDD). These steps are specifically for an Epicor Cloud based system where the user doesn’t have access to the server. The goal is to use multiple BAQs in a Report Data Definition and then to build a report with sub reports.
Most of the credit for this post needs to go to @Fernando and @utaylor . They helped me over some of the hurdles. BAQ Report - SubReport using BAQReport
Step 1) Create the BAQs needed to retrieve the data for the report. In my example, I have 3 BAQs.
-
JobTravelerBAQ7, this BAQ will create the main SSRS report -
JobTravelerBAQ7JobMtl, this BAQ will be a sub report -
JobTravelerBAQ7SubC, this BAQ will be a second sub report
Step 2) Create a new Report Data Definition. The Report Type will be SQL Server Reporting.
Step 3) Add the BAQs to the Report Data Definition. These are the Data Sources.
Step 4) Create a report style for the new Report Data Definition. Leave the Report Service blank.
Step 5) Use the plus sign to add a report style. The Report Type is SQL Server Reporting, the data definition is the one you just created, and the output location is database.
Step 6) Using the 3 dots in the upper right, click “Create SSRS Report”. Epicor will assign a Report Location and create the base SSRS report.
Step 7) Download the newly created report by going back to the 3 dots in the upper right and clicking “Download SSRS Report”.
Step 8) Go to your downloads folder. A zipped folder called Reports will be in your downloads folder. Notice that the file path inside the zipped folder will match the Report Location path. You have to continue to maintain this path.
Step 9) Extract the Report Builder File and open it. In this example, there is only 1 SSRS report and it is called JobTraveler7. This report has the TableGuid, the DataSource, and the data from the 3 BAQs as 3 unique data sets.
Step 10) The goal is to have a main report and 2 subreports, so 3 reports total are needed in the report location folder. To get the 3 reports, copy the file JobTraveler7 and paste it 2 times in the same folder. For organization, rename the copied files the same name as the subreport BAQs. When you are finished you will have a folder that looks something like this:
















