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,

Any currency to accounting currency in AX 2012

Hi,

Currency::amount(markupTransAllocate.Value, markupTransAllocate.CurrencyCode);

Regards,

How to invoke and iterate List as Contract methods in AX 2012/ D365

Hi, Public void performContractIterate(ClassContainsListAsContract    _ListCarryClass) { List contractFieldList = new List(Types::Class); ...