Hi
Craeted an AOT Query using one table and I am trying to insert records from Taxtrans table to my temporory table (TmpTaxTransactionRDP), unable to insert value from taxtrans and only blank records are inserting. Kindly see the follwing my query and classes.
TaxListCutomizedQueryDP
ClassDecleration
[
SRSReportQueryAttribute(queryStr(TaxListQueryAM))
]
public class TaxListCutomizedQueryDP extends SRSReportDataProviderBase //
{
TmpTaxTransactionRDP TmpTaxTransactionRDP;
}
getTmpTaxTransactionRDP
[
SRSReportDataSetAttribute(tableStr("TmpTaxTransactionRDP"))
]
public TmpTaxTransactionRDP getTmpTaxTransactionRDP()
{
select * from TmpTaxTransactionRDP;
return TmpTaxTransactionRDP;
}
processReport
public void processReport()
{
Query Query;
QueryRun QueryRun;
TaxTrans lclTaxTrans;
Query = this.parmQuery();
QueryRun = new QueryRun(Query);
ttsBegin;
while (QueryRun.next())
{
lclTaxTrans= QueryRun.get(tableNum(TaxTrans));
TmpTaxTransactionRDP.TaxAmount=lclTaxTrans.TaxAmount;
TmpTaxTransactionRDP.TaxCode=TaxTrans.TaxCode;
TmpTaxTransactionRDP.TransDate=TaxTrans.TransDate;
TmpTaxTransactionRDP.insert();
}
ttsCommit;
}
Thanks & Regards
Avinash
*This post is locked for comments