Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Sunday, September 13, 2015

Code to run the report in clicked method of the button in AX

Hi,

void clicked()
{
    Args            args;
    ReportRun       reportRun;
    NSGEosTransactions  esotransactions;
    ;
     select esotransactions where esotransactions.EosTransId == NSGEosTransactions.EosTransId;
    args    = new args();
    args.name(reportstr(NSG_EOSReport)); // Report name
    args.record(esotransactions); 
    args.parm(NSGEosTransactions.EosTransId); // Parameter value that I passes.
    reportRun = classFactory.reportRunClass(args);
    reportRun.init();
    reportRun.run();
}


Regards,

No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...