Saturday 19 October 2019

RUN REPORT FROM BUTTON CLICK IN AX 2012

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

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...