Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

You're reading from   Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update Over 90 recipes to help you resolve your new SSRS Reporting woes in Dynamics AX 2012 R3

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784395384
Length 352 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Understanding and Creating Simple SSRS Reports FREE CHAPTER 2. Enhancing Your Report – Visualization and Interaction 3. Report Programming Model 4. Report Programming Model – RDP 5. Integrating External Datasources 6. Beyond Tabular Reports 7. Upgrading and Analyzing Reports 8. Troubleshooting and Other Advanced Recipes 9. Developing Reports with Complex Databases 10. Unit Test Class and Best Practices Used for Reports Index

Adding ranges to the report

Ranges are very important and useful while developing an SSRS report in AX 2012 R3. They help to show only limited data, which is filtered based on given ranges, in the report.

The user can filter the data in a report on the basis of the field added as a range. The range must be specified in the query. In this recipe, we will show how we can filter the data and use a query field as a range.

How to do it...

In this recipe, we will add the field under the Ranges node in the query that we made in the previous recipe. By adding the field as a range, you can now filter the data on the basis of VendGroup and show only the limited data in the report.

  1. Open the PKTVendorDetails query in AOT.
  2. Drag the VendGroup and Blocked fields to the Ranges node in AOT and save your query.
    How to do it...
  3. In the Visual Studio project, right-click on Datasets and select Refresh.
  4. Under the parameter node, VendorMaster_DynamicParameter collectively represents any parameter that will be added dynamically through the ranges. This parameter must be set to true to make additional ranges available during runtime. This adds a Select button to the report dialog, which the user can use to specify additional ranges other than what is added.
    How to do it...
  5. Right-click on the VendorMaster auto design and select Preview. The preview should display the range that was added in the query. Click on the Select button and set the VendGroup value to 10. Click on the OK button, and then select the Report tab, as shown in the following screenshot:
    How to do it...
  6. Save your changes and rebuild the report from Solution Explorer. Then, deploy the solution.
    How to do it...

How it works…

The report dialog uses the query service UI builder (that we will cover in later chapters) to translate the ranges and to expose additional ranges through the query.

Dynamic parameter: The dynamic parameter unanimously represents all the parameters that are added at runtime. It adds the Select button to the dialog from where the user can invoke an advanced query filter window. From this filter window, more ranges and sorting can be added. The dynamic parameter is available per dataset and can be enabled or disabled by setting up the Dynamic Filters property to True or False.

Note

The Report Wizard in AX 2012 still uses MorphX reports to auto-create reports using the wizard. The auto report option is available on every form that uses a new AX SSRS report.

You have been reading a chapter from
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
Published in: Mar 2015
Publisher:
ISBN-13: 9781784395384
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime