Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
  • Toc
  • feedback
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

By : Agarwal, Aggarwal, Elangovan
4.4 (7)
close
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

4.4 (7)
By: Agarwal, Aggarwal, Elangovan

Overview of this book

Microsoft Dynamics AX 2012 R3 Reporting Cookbook is recommended for Dynamics AX developers and .NET-based SSRS developers looking to familiarize themselves with the new AX reporting framework.
Table of Contents (12 chapters)
close
11
Index

Using an XML feed as a datasource


In the previous recipe, the entire data for the report was hardcoded. In this recipe, we will continue to use the data table as a datasource, but the data for this report will come through an XML feed. The XML is retrieved at runtime, and parsed and filled in a data table, which is then rendered in the report.

Getting ready

This recipe requires the machine on which you work to be connected to the Internet. The XML feed (http://themoneyconverter.com/rss-feed/USD/rss.xml) used in this report is downloaded at runtime.

How to do it…

  1. In the existing project, PKTExchRateReports, add a new report called PKTExchRateFromWeb.

  2. Add a new data method and double-click on it to create the business logic.

  3. Replace the empty method with the logic given here:

    [DataMethod(), PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
    Public static DataTableExchangeRateData()
        {
    DataTable dt;
    
    dt = new DataTable();
    dt.Columns.Add("Category", typeof(string));
    dt.Columns.Add("Base Currency...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete