Tuesday, 28 October 2014

Execute Report section

Hello
Today i would like to share how to write a code which will enable you control the execution a particular report section in ax 2009 and ax 2012 standard reports;
The below code will enable you achieve;


Override the executesection method in your report design  ;

void  executesection()
{
 if( yourtable. fieldname = condition)
{
super()
}
}

suppose you want to execute the section only if the value in a particular field is not equal to zero;

void  executesection()
{
if( inventtable.onhandqty != 0)
{
super()
}
}

No comments:

Post a Comment