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

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...