Hi Will,
I am trying to add one field PaytermId in the Customer Aging Report. For this i did these changes:
1. Created the extension of temp table CustAgingReportTmp and added field Payterm id in it.
2. Created extension of DP class and added this piece of code:
[ExtensionOf(classStr(CustAgingReportDP))]
final class CustAgingdp_Extension
{
/// <summary>
///
/// </summary>
/// <param name="args"></param>
protected CustAgingReportTmp insertCustAgingReportTmp(boolean _reverseAmountsAndHeadings)
{
next insertCustAgingReportTmp(_reverseAmountsAndHeadings);
custAgingReportTmp.PaymTermId = CustTable::find(custAgingReportTmp.Custaccount).PaymTermId;
return custAgingReportTmp;
}
}
3. Created extension of controller class and added this piece of code:
class CustAgingControllerExt extends CustAgingReportController
{
public static CustAgingControllerExt construct()
{
return new CustAgingControllerExt();
}
public static void main(Args _args)
{
SrsReportRunController controller = new CustAgingControllerExt();
controller.parmReportName(ssrsReportStr(APUKCustAgingReport,
DesignWithNoDetailAndNoTransactionCur));
controller.parmArgs(_args);
controller.parmShowDialog(false);
controller.startOperation();
}
}
4. Created copy of the CustAged report abd changed its name. And then restore the custageingreport. I am able to get the field. And added it to design.
5. Created extension of menu item "CustAgingBalance", and selected the newly created controller class.
6. Deployed the report.
But i am not able to get the newly created field, and also getting this info.
Please help me on this. Its urgent.
Regards
Neeraj