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

Hiding controls by context

Among the customizations done in a report, one of the most common is to disable certain report controls by context. This recipe will showcase how to hide a report control in the report design using the context.

How to do it…

  1. Create a new report in Visual Studio with the CustTable query as the data source.
  2. Add an auto design and drag the data source to the design.
  3. In the Parameters node, add a new parameter of type Boolean and call it HiddenParm. Set its properties as follows:

    Property

    Value

    Nullable

    True

    AllowBlank

    True

    Default Value

    False

    How to do it…
  4. In the Designs node, navigate to the control which must be toggled based on the ...

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