AX2012 Debug SSRS 报表
AX 2012 后SSRS报表的DP 类debug 需要繁琐的设置,太麻烦了。
简单的办法,写一个job 条用DP 类,这样就可以直接debug进去了。
static void Job13(Args _args) { TransDate toDate; Prov_VendAgingListDP Prov_VendAgingListDP; Prov_VendAgingListContract Prov_VendAgingListContract; Query query = new Query(queryStr(Prov_VendTableSRS)); ; toDate = mkDate(31,7,2020); Prov_VendAgingListDP = new Prov_VendAgingListDP(); Prov_VendAgingListContract = new Prov_VendAgingListContract(); Prov_VendAgingListContract.parmToDate(toDate); Prov_VendAgingListDP.parmDataContract( Prov_VendAgingListContract); query.dataSourceNo(1).addRange(fieldNum(Prov_VendTableSRS,AccountNum)).value("CD00022"); Prov_VendAgingListDP.parmQuery(query); Prov_VendAgingListDP.processReport(); }