How to pass Arguments/records in RDP Report through form, how to open report from the Form using controller class (X++) in D365 Finance and operation.
In this article, I will guide you on how to pass arguments or records from a form to a report as parameters. I have developed a report that prints the purchase order for a specific purchase ID (with either ‘Received’ or ‘Invoiced’ purchase status), which I pass through the form. Let’s begin by creating a simple Finance and Operations project in Visual Studio. We will add all the elements required to develop the report. The following elements are necessary: Temp table (with required fields, fields which mapped in Dp class) Contract class Data Provider Class Report (Add the DP class to the Dataset of the Report, and create the report design according to your requirements) For the PurchTable Form, create a Form Extension of the PurchTable Form and add a button group and button in the Action pane. DP Class: [SrsReportParameterAttribute(classStr(PurchTable_Contract))] class PurchTable_DP extends SRSReportDataProviderBase { PurchReceiptTmp prt; //Seri...