Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
How can I run (call) a SSRSreport from a method in X++.
You can use the SrsReportRunController class as in this example:
controller = new SrsReportRunController();
The controller has additional parm methods to help control running the report, such as parmShowDialog which you can use to skip the report dialog.
For advanced features you can create a new controller class extending SrsReportRunController and override methods. For example, by overriding the prePromptModifyContract method you can manipulate the query or other data members before the dialog is shown.
I need to know the usage of controller class in ax 2012 for creating SSRS Report.
Any ideas, Please share it.
Report programming model for Microsoft Dynamics AX 2012
search for above text in BING.
MOst comprehensive documentation for reporting framework in ax 2012
How can I run the report with parameters?
you have to get the contract object associated to the execution by using this kind of construct
contract = controlerObj.ParmReportContract().ParmRDPContract() as ReportContractClass
now call this method,
With parameters like calling the report with parameter name Customer_Num, Invoice_ID..., not report parameters like print destination, report name, caption... ?
You need to first set the report name for the controller object
then you get the ReportContract object from it as mentioned above.
1)RDPContract (If you have a DP class attached to a DS used in the report which has a parameters)
2)RDLContract (these are parameters used just in the design of the report )
3)QueryContracts (the query LIST associated with the execution of the DP)
4)PrintContracts (these are the print destination settings associated to report execution)
you can explicitly set all these for a report once the report name is set and you have ReportContract object
Hope this might be of some help
I am so happy to have found this snippet of code,
That did the trick for me!
Business Applications communities