O'Reilly logo

Microsoft Dynamics AX 2012 Reporting Cookbook by 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

Adding ranges from unbound parameters to the query

The SSRS reports support using parameters that are not the part of a dataset. This recipe will attempt to use the unbound parameters, FromDate and ToDate, added in the report to set the ranges in the report query. These parameters are added in the report and are not connected to any dataset. The values in these controls will be received and set on the report query.

How to do it...

  1. The first step is to create a contract and a UI builder class and bind them together. (Assuming you have created the parameters as discussed in the first recipe, Opening a report through a controller.)
  2. Add a UIBuilder class that extends SRSReportDatacontractUIBuilder:
    class PktRdlCustTransListUIBuilder extends SrsReportDataContractUIBuilder ...

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