Hi Experts,
I am developing a SSRS report but getting few errors please correct me where I am wrong. Kindly PFA Code and errors.
[SRSReportParameterAttribute(classstr(ASL_VTS_ChequeRequisitionSlipReportContract))] class ASL_VTS_ChequeRequisitionSlipReportDP extends SrsReportDataProviderPreProcessTempDB { ASL_VTS_ChequeRequisitionSlip chequeRequisitionSlip; [SRSReportDataSetAttribute(tableStr(ASL_VTS_ChequeRequisitionSlip))] public ASL_VTS_ChequeRequisitionSlip getchequeRequisitionSlip() { select * from chequeRequisitionSlip; return chequeRequisitionSlip; } [SysEntryPointAttribute(false)] public void processReport() { Query query = this.parmQuery(); QueryRun queryRun; ASL_VTS_ChequeRequisitionSlipReportContract chequeRequisitionSlipReportContract; VendTransOpen vendTransOpen; TransDate transDate; VendTable vendTable; VendInvoiceJour vendInvoiceJour; VendTrans vendTrans; VendBankAccount vendBankAccount; transDate = chequeRequisitionSlipReportContract.ParmFromDate(); transDate = chequeRequisitionSlipReportContract.ParmToDate(); query.dataSourceTable(tableNum(VendTransOpen)).addRange(fieldNum(VendTransOpen, TransDate)).value(fromDate); query.dataSourceTable(tableNum(VendTransOpen)).addRange(fieldNum(VendTransOpen, TransDate)).value(toDate); queryRun = new queryRun(query); while (queryRun.next()) { vendTransOpen = queryRun.get(tableNum(VendTransOpen)); vendTable = queryRun.get(tableNum(VendTable)); vendInvoiceJour = queryRun.get(tableNum(VendInvoiceJour )); vendTrans = queryRun.get(tableNum(VendTrans)); vendBankAccount = queryRun.get(tableNum(VendBankAccount)); ChequeRequisitionSlip.clear(); ChequeRequisitionSlip.initValue(); ChequeRequisitionSlip.VendorName = vendTable.Party; ChequeRequisitionSlip.PONumber = vendInvoiceJour.PurchId; ChequeRequisitionSlip.InvoiceNumber = vendTrans.Invoice; ChequeRequisitionSlip.BillDate = vendTransOpen.TransDate; ChequeRequisitionSlip.DueDate = vendTransOpen.DueDate; ChequeRequisitionSlip.PaymentAmount = vendTrans.AmountCur; ChequeRequisitionSlip.BeneficiaryAccountNumber = vendBankAccount.AccountNum; ChequeRequisitionSlip.BeneficiaryBankSwiftCode = vendBankAccount.SWIFTNo; ChequeRequisitionSlip.insert(); } } }
Regards