O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, Kamalakannan Elangovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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(); } ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required