Hi,
I need to run a report for customized date interval.If I run the report in the batch job the dynamic date should be pass to the parameter.But it doesn't work for me. I have written the logic in the controller.Whether I did any mistake in that code please let me know.
public static void main(Args _args)
{
KTI_ProductStatusAuditController controller;
KTI_ProductStatusIdAuditContract contract;
CreatedDateTime openDate;
CreatedDateTime closeDate;
controller = new KTI_ProductStatusAuditController();
controller.parmReportName(ssrsReportStr(KTI_ProductStatusIdAudit, Report));
controller.parmShowDialog(true);
contract = new KTI_ProductStatusIdAuditContract();
contract = controller.parmReportContract().parmRdpContract() as KTI_ProductStatusIdAuditContract;
openDate=DateTimeUtil::newDateTime(prevMth(today()+1),-1, DateTimeUtil::getCompanyTimeZone());
closeDate=DateTimeUtil::newDateTime(today()-1, DateTimeUtil::getCompanyTimeZone());
if(controller.isInBatch())
{
contract.parmFromDate(opendate);
contract.parmToDate(closedate);
controller.parmArgs(_args);
}
controller.startOperation();
}
Thanks Advance
Lakshmikanthan K
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (