RUN REPORT FROM BUTTON CLICK IN AX 2012
void clicked()
{
Args args;
ReportRun reportRun;
CustTrans custTrans;
;
select firstonly custTrans where custTrans.recid == '1231232';
args = new args();
args.name(reportstr(ReportName)); // Report name to be called
args.record(custTrans);
args.parm(custTrans.transID); // In case there are additional paramters..
reportRun = classFactory.reportRunClass(args);
reportRun.init();
reportRun.run();
}
Thanks,
Vikas Mehta
No comments:
Post a Comment