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

Modifying the report query in controller

Queries present the ability to add dynamic ranges to a report. Some situations demand ranges or sorting orders to be filled in, making it easier for the user. A good example would be an instance when a report is opened from the customer from which the range customer is prefilled. This recipe will handle this scenario of modifying queries through the controller class.

Getting Ready

This and the following recipes will use the PktRdlItemTransList report created in the first recipe.

How to do it...

  1. In your controller class, override the prepromptModifyContract method and write the following code:
    protected void prePromptModifyContract() { Query query; QueryBuildDataSource qbds; InventTable inventTable; //if an argument ...

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