Run the DP class (SSRS) in Dynamics AX 2012
DemoContract contract = new DemoContract();
DemoDP dp = new DemoDP();
QueryBuildDataSource qbds;
Query query;
TableNameTmp tableNameTmp;
contract.parmFromDate(mkDate(1,4,2019));
contract.parmToDate(mkDate(31,12,2019));
query = dp.parmQuery();
qbds = query.dataSourceTable(tableNum(CustTable));
SysQuery::findOrCreateRange(qbds,fieldNum(CustTable,AccountNum)).value("CUST-002005");
dp.parmDataContract(contract);
dp.processReport();
tableNameTmp= dp.getTableNameTmp();
while select tableNameTmp
{
info(strFmt("%1",tableNameTmp.AccountNum));
}
Comments
Post a Comment