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

Testing the RDP report

In this recipe, we will explain about testing the RDP class using the code. The RDP class can be tested even without hooking it to a report. This has the advantage of testing it faster and ensuring that it works reliably before connecting it to a report. This topic is explained in details in a later chapter.

How to do it…

  1. Create a new job as shown in the code here:
    static void TestInterestCalcRDP(Args _args) 
    { 
        //initialize contract 
        PktInterestCalcContract cont = new PktInterestCalcContract(); 
          PktInterestCalcDp dp; 
        //fill the contract 
        cont.parmAmount(2000); 
        cont.parmInterest(10); 
        cont.parmYear(5); //instantiate 
        dp = new PktInterestCalcDp(); 
        //pass the contract 
        dp.parmDataContract(cont); 
        //fill the table 
        dp.processReport(); 
    }
  2. Change the temporary table used for this RDP to a persistent table by setting the table type property as Regular.
  3. Run the job and verify that the data is filled in the table. If...

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