Hi Lars, Thanks for your reply. I got your point and have tried it. It works. I have another question regarding again with the two report requirement. One is detailed and anothe is summary.
You see I have a class that gather from parameter then I want to print both detailed and below the summary report. Can it be possible ? or I have to make two reports as AX can not print two reports at the same time. I have tried modifying the fetch tow run the two design but it does not work. Only one design is run. Is this the normal behavior of AX. Below is the sample code with 2 design. public boolean fetch() { QueryRun qr; boolean ret = true; CustTable _custTable; int switchrpt; //GIS_BIR1601Sum_Trans gis_BIR1601Sum_Trans; GIS_1601ESUMDEPTRPT _gis_1601ESUMDEPTRPT; ; switchrpt=3; element.design("D1"); qr = new QueryRun(element.query()); // Sum all chosen assets into groups. if (qr.prompt()) { while (qr.next()) { _custTable = qr.get(TableNum(CustTable)); // element.AddAssetToColumn(_custTable); this.send(_custTable); } return true; } } { element.design("ByDept"); qr = new QueryRun(element.query()); // Sum all chosen assets into groups. qr = new QueryRun(this.buildQuerygis_1601ESUMDEPTRPT ()); // qr = new QueryRun (gis_BIR1601Sum_Trans.buildQuery4()); this.queryRun(qr); // printctr=0; while (qr.next()) { _gis_1601ESUMDEPTRPT = qr.get(TableNum (GIS_1601ESUMDEPTRPT)); this.send(_gis_1601ESUMDEPTRPT); } return true; } return false; }