web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Call SSRS Repart class and Table data through Job in Ax 2012

SANTOSH KUMAR SINGH Profile Picture SANTOSH KUMAR SINGH 1,224
To SSRS Repart class and Table data through Job in Ax 2012 you can try below code.


   TestTmp tempTable;  
TestDP dataProvider = new TestDP();
TestContract contract = new TestContract();
contract.parmCustAccount("Test00001");
contract.parmNofSample(8);
dataProvider.parmDataContract(contract);
dataProvider.processReport();
tempTable = dataProvider.getTestTmp();
while select tempTable
{
info(strFmt("%1,%2,%3,%4",tempTable.CurrencyCode,tempTable.SalesId,tempTable.Monthname,tempTable.CurrentMonthSum));
}

Here TestDP is data provider class for SSRS Report and TestContract is contract class . To pass parameter value we used parmCustAccount and parmNofSample method from contract class. tempTable is temparary table used in DP class.

This was originally posted here.

Comments

*This post is locked for comments