Author: Sai Krishna
Creating SSRS reports in D365FO using the RDP (Report Data Provider) pattern allows for complex data processing and customization. This guide walks you through the steps to build an SSRS report using RDP, Contract, and Controller classes.
Tags: D365FO SSRS Report, RDP Class, Contract Class, Controller Class, TempDB, Microsoft Dynamics AX, Report Development
🧱 Step 1: Create a Temporary Table
Design a temporary table (e.g., SK_PerdiemTempTable
) with the necessary fields to store the data for the report. Set the table's TableType
property to InMemory
or TempDB
based on your requirements.
🔍 Step 2: Define a Query
Create a query (e.g., SK_PerdiemQuery
) that joins the relevant tables (PerdiemHeader
, PerdiemLine
, etc.) and includes the fields needed for the report.
📄 Step 3: Develop the Data Contract Class
The Data Contract class defines the parameters that will be passed to the report.
🧠 Step 4: Create the RDP Class
The RDP class processes the data and populates the temporary table.
🎮 Step 5: Implement the Controller Class
The Controller class manages the report execution and parameter passing.
🖥️ Step 6: Design the Report in Visual Studio
-
Create a New Report: In Visual Studio, add a new report and name it
SK_PerdiemReport
. -
Add Dataset: Use the
SK_PerdiemTempTable
as the dataset. -
Design Layout: Drag and drop fields from the dataset to design the report layout as per your requirements.
-
Add Parameters: Include parameters defined in the Data Contract class.
-
Deploy the Report: Deploy the report to the D365FO environment.
🧪 Step 7: Test the Report
-
Navigate to the Report: In D365FO, go to the menu item linked to the report.
-
Provide Parameters: Enter the required parameters in the dialog.
-
Run the Report: Execute the report and verify the output.
📝 Additional Tips
-
Date and Time in Report: To display the current date and time in the report, use the following expression in the report design:
-
Page Numbers: To display page numbers, use:
-
Company Name: To display the company name:
By following these steps, you can create a robust SSRS report in D365FO using the RDP pattern, allowing for complex data manipulation and customized reporting.
0 Comments