Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Hello all, in a requirement i have to run my report from form where it takes the selected record on form as parameter to process the report. The report dialog should be invisible. How can i achieve this ? I have written DP class, contract class and controller class, created an action menu item and set it as menu item button form. But here i am not setting the data source. I need some code level implementation from where the report gets open on button click
What do you mean by "here i am not setting the data source"?
Don't you get the record when calling args.record() in main() method of the controller class?
Your report controller class should extend the SrsReportRunController class:
class TestRC extends SrsReportRunController
The main method of your report controller class should look similar to this:
public static void main(Args _args)
TestRC controller = new TestRC();
dataTable = _args.record() as DataTable;
This called pre process pass parameter
By this controller.parmShowDialog(false)
The report dialog will not show
If you are using menu item (Action menu item of your controller class )to open report then follow below link. From required a data source from where you are opening report.
And if you want to open report by button click
Create output menuitem of your report and write below code in button click
args args; //declare args
args = new Args();args.caller(element);new MenuFunction(menuitemoutputstr(Myreport), MenuItemType::Output).run(args);
and pass parameter in contract in dp class.
Business Applications communities