Friday 13 April 2018

In AX7 call Multiple Design in controller Class

public class NECInventoryOnhandReportController extends SrsReportRunController
{
    public static NECInventoryOnhandReportController construct()
    {
        return new NECInventoryOnhandReportController();
    }

    public static void main(Args _args)
    {
        NECInventoryOnhandReportController controller = NECInventoryOnhandReportController::construct();


        if(_args.menuItemName() == menuItemOutputStr(NEC_MB52StockReport))
        {
            controller.parmReportName(ssrsReportStr(NECInventoryOnhandReport, NEC_Report));
            controller.parmDialogCaption("MB52 Stock Detailes");
        }
        else
        {
            controller.parmReportName(ssrsReportStr(NECInventoryOnhandReport, Report));
            controller.parmDialogCaption("Inventory Onhand & ROL Details");
        }
        controller.parmArgs(_args);
        controller.startOperation();
    }

}

No comments:

Post a Comment