Wednesday, April 29, 2015

How to change Status of Withhold Batch job to Waiting - AX 2009

On class BatchChangeStatus, comment the Return to allow changing status if AX doesn't allow to change .

static void main(Args args)
{
    BatchChangeStatus   changeStatus;

    changeStatus = new BatchChangeStatus();
    BatchChangeStatus::initFromForm(changeStatus,args);

    if (! changeStatus.prompt())
//        return; //20150429 allow to change status

    changeStatus.run();

    if (args.caller())
    {
        args.caller().doReselect();
    }
}

No comments:

Post a Comment