Hi All,
How to fetch data in controller and contract class to create a report? I'm already done in generating xml file, but the metadata doesn't any information from the table that I've used.
Thanks for the response.
Hi All,
How to fetch data in controller and contract class to create a report? I'm already done in generating xml file, but the metadata doesn't any information from the table that I've used.
Thanks for the response.
Hi,
Could you provide some more information about A2X classes as I am not much aware of it or might be known with a different name.
Hi,
How can I pass the return rec id value of method from contract to a2x class?
Thanks.
Hi,
I found the error at A2X class.
Hi,
Are you getting this error in data provider class. You can check the method processReport of class CustAccountStatementIntDP and implement your code.
Code: CustAccountStatementIntContract contract = this.parmDataContract();
fromDate = contract.parmFromDate();
toDate = contract.parmToDate() ? contract.parmToDate() : dateMax();
Hi,
When I initialize the value of my contract class
like this rdpContract as ContractClassName , and when I print my report, the error pops and its says that the object is not initialized. How to fix it?
Thank you.
Hi,
If you have business logic, then we need to use DP class and report can be developed only based on query too.Can you provide us your code, will try to figure out the issue.
Refer this links:
(Query Based SSRS report from Scratch Dynamics Ax 2012 R3.)
https://www.tech.alirazazaidi.com/query-based-ssrs-report-from-scratch-dynamics-ax-2012-r3/
(Developing SSRS report using Query in Microsoft Dynamics AX 2012)
Hi,
I used query instead of Report Data provider.
Is it okay to use DP class?
I can't call contract = rdpContract as ContractClassName;
Thanks.
Hi All,
Is it okay to use DP class? Because I used query for creating report.
Thanks.
Hi,
You can check SalesInvoiceDP.getDataFromContract() to see how to get contract parameters in report DP class.
Kind Regards,
István
Hi,
Values from contract class are usually retrieved in DP class. Please check the following parameters in your DP class.
Class: DP suffix class
Method: ClassDeclaration
Parameters: [
SRSReportQueryAttribute(queryStr(ReportQueryName)),
SRSReportParameterAttribute(classStr(ContractClassName))
]
Class: DP suffix class
Method: processReport
Code: contractclassvaraible= this.parmDataContract() as ContractClassName;
Retrieving the value: variable= contractClassVariable.parmmethod();
You can take reference of following classes to check implementation details: CustAccountStatementIntContract, CustAccountStatementIntController and CustAccountStatementIntDP.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,252 Super User 2024 Season 2
Martin Dráb 228,089 Super User 2024 Season 2
nmaenpaa 101,148