Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R3 Reporting Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding unbounded parameters in reports


Parameters bring in interactivity to reports. In the previous chapter, we discussed how a new parameter can be added to a dataset through a query. There can be scenarios where we may have wanted to have a parameter that is not linked to dataset but needed it for the purpose of reporting. These parameters are referred to as unbound parameters. In this and the following recipe, we will discuss how to add a parameter and how to use it in the report. The How it works section of this recipe should also help you understand reports in more depth.

In this recipe, we will add two parameters, one of type Boolean and the other String type. The following recipe will show how they will be put to use.

How to do it…

  1. Go to the Parameter node in the report and right–click on it. Go to Add | New Parameter.

  2. In the new parameter, set the following properties:

    Property

    Value

    Name

    ShowPieChart

    Prompt string

    Show Pie Chart

    Data Type

    Boolean

    Default Value

    True...