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 UI by caller

This recipe will discuss how the controls in the report dialog can be added or removed based on the caller. For this purpose, the third parameter ShowApproved added in the first recipe will be used. ItemTrans has an Approved field and the idea is to link this unbound parameter to this field in the dataset so that users can easily choose it in the report dialog rather than adding it through the dynamic filters in the query.

How to do it…

  1. The build method from the UI builder class will be the ideal choice to handle any changes to the UI. Create a method called enableApprovedFlag() and call this method from the build method in UI builder. This can alternatively be invoked from the postBuild method of the UI builder.
    private ...

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