public class AgCopyTmpData_VendAging
{
VendAgingReportContract contract= new VendAgingReportContract();
AgCopyVendAgingReportTmp agCopyVendAgingReportTmp ;
public static void main(Args _args)
{
AgCopyTmpData_VendAging agCopynew = new AgCopyTmpData_VendAging();
boolean reverseAmountsAndHeadings;
AgCopyVendAgingReportTmp agCopyVendAgingReportTmp;
RecordInsertList recordInsert = new RecordInsertList( tableNum(AgCopyVendAgingReportTmp),false,true,true,false,false,agCopyVendAgingReportTmp);
agCopynew.agInsertVendAgingReportTmp(reverseAmountsAndHeadings,recordInsert);
}
[Wrappable(true)]
protected final ColumnTxt headingDate()
{
switch (contract.parmDateTransactionDuedate())
{
case DateTransactionDuedate::DocumentDate:
return "@SYS2587";
case DateTransactionDuedate::TransactionDate:
return "@SYS67";
case DateTransactionDuedate::DueDate:
return "@SYS14588";
default:
return "@SYS14588";
}
}
public void agInsertVendAgingReportTmp(boolean _reverseAmountsAndHeadings, RecordInsertList _tmpTableRecordList)
{
agCopyVendAgingReportTmp.AccountNum="@SYS24500";
agCopyVendAgingReportTmp.HeadingDate=this.headingDate();
agCopyVendAgingReportTmp.AsOfDate=strFmt("@SYS84682", date2StrUsr(contract.parmBalanceAsOfDate(), DateFlags::FormatAll), contract.parmDateTransactionDuedate());
agCopyVendAgingReportTmp.Balance=
}
}
I tried inserting data the above way but it doesn't work. Am I doing it right ?