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

Popular posts from this blog

How to loop through enum in dynamics ax 2012 using x++

How to read from csv file in Dynamics AX 2012 Through X++

How to Create Transfer Journal in Dynamics AX 2012 Through X++