Hi, there hope so you are all well.
I have an issue when I create a Customer aging report using a chain of command. when I extended Dp-class and added my custom field in CustAgingReportTmp Tmp DB then no data showed on my custom field that was added in Tmp DB Like: SalesMan, TotalCreditMax.
My following Code is:
CustAgingReportDP is the name of the main Dp class & after the extension of this class when I called below mentioned /insertCustAgingReportTmp/ method and I want to show data on the report. but not show data in hard code & my logic.
The first way to get data.
[ExtensionOf(classstr(CustAgingReportDP))]
final class CustAgingReportDP_Extension
protected CustAgingReportTmp insertCustAgingReportTmp(boolean _reverseAmountsAndHeadings)
{
CustAgingReportTmp custAgingReportTmp = next insertCustAgingReportTmp(_reverseAmountsAndHeadings);
custAgingReportTmp.TotalCreditMax = 12;
custAgingReportTmp.SalesMan = 'aaa';
return custAgingReportTmp;
}
The Second Way to get data using a table event handler:
class CustAgingReportDP _Eventhandler
{
[DataEventHandler(tableStr(CustAgingReportTmp), DataEventType::Inserting)]
public static void CustAgingReportTmp_onInserting(Common sender, DataEventArgs e)
{
CustAgingReportTmp CustAgingReportTmp= sender as CustAgingReportTmp;
custAgingReportTmp.TotalCreditMax = 12;
custAgingReportTmp.SalesMan = 'aaa';
}
}
Note:
So please check it out, and help me. how to get data using the COC method & changing customer requirements report.
Thanks!
Regards:
Ahmad Hassan.