Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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
Authors (3):
Arrow left icon
 Agarwal Agarwal
Author Profile Icon Agarwal
Agarwal
 Aggarwal Aggarwal
Author Profile Icon Aggarwal
Aggarwal
Kamalakannan Elangovan Kamalakannan Elangovan
Author Profile Icon Kamalakannan Elangovan
Kamalakannan Elangovan
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Microsoft Dynamics AX 2012 R3 Reporting Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
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 data methods in business logic


While display methods in AX can be accessed through the table methods exposed in the Query window, there can be small computational needs in every report. If these small computations cannot be implemented by expressions, then they can be handled by data methods. These are based on C# and can be used to leverage the C# framework capabilities for small computations. This recipe will showcase adding a data method to the report where a text in a selected field is made upper case.

How to do it…

  1. Right-click on the Data Methods node of your report data model to add a new data method.

    Adding a data method

  2. Rename the data method to changeCase.

  3. Double-click on the new data method and a new C# project with the name of the report will be added to the solution.

  4. The cursor will point to a plain implementation method that appears similar to this:

    [DataMethod (), PermissionSet (SecurityAction.Assert, Name = "FullTrust")]
        public static string DataMethod1()
        {
        throw...
lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime
Visually different images