O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, Kamalakannan Elangovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling events after report completion

To handle events after report completion, the reporting framework in AX gives the ability to hook custom events that will be called after a report is complete. This event can be used to find when the report execution is complete and take the corresponding actions. The recipe here discusses a sample implementation.

How to do it…

  1. In this example, let's say that we update the Printed field in the table with status Yes after the report is printed. The reporting framework has the renderingCompleted delegate, which is invoked once a report is complete. So, the first step is to create a method that can be linked to this delegate.
  2. The method's signature must match the delegate, while the rest such as the name, instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required