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
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 2. Enhancing Your Report – Visualization and Interaction FREE CHAPTER 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

Expression in reports

Expression is a very interesting property in SSRS reports. It is mostly used to do customizations at runtime. Expressions are basically used to change report appearances and report content at runtime. Microsoft Visual Studio has some built-in functions that can be used in expressions. In this recipe, we will implement the most important feature of printing the alternate line in different colors.

How to do it…

  1. In the template, select the DetailRowStyle | FieldValueStyle node.
  2. For the Background Color property, choose the <Expression...> list:
    How to do it…
  3. The Edit Expression window will pop up.
  4. Type the following expression in the Edit Expression window, as shown in the screenshot:
    =iif(RowNumber(Nothing)mod 3, "#e0e0e0", "#ffe0c0")
    How to do it…
  5. Save the template and go back to the PktCustTransList report for a preview.
  6. The report should now appear with a different color on every third line when previewed, as seen in the following screenshot:
    How to do it…

How it works…

Expressions...

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
Banner background image