Thursday 29 November 2012

Limit Number of records in AX 2009 reports



If you want to limit number of records in report upto 30 then following are the steps.

1-Goto saleconfirm report in AOT.

2-In class declaration declare variable.

int rowcount;

3-In init method initialize rowcount variable.

rowcount = 0 ;

4-Goto body section of report and override exectionsection method and write the code below


rowcount +=1;

if(rowcount == 31)
{

element.newPage();
rowcount=1;

}

super();

No comments:

Post a Comment