Setting Different Parameters value for a Batch Job
Hello folks, today I got a requirement in Ax 2012 of adding different parameter values for a report running in a batch job. The requirement is to set the default parameter values for a batch job which is different from the values of dialog box . So for this purpose , I have override the method preRunModifyContract() in the controller class. I added the following code in the method preRunModifyContract()
if (this.isInBatch())
{
contract.parmToDate(1/1/2008);
contract.parmLedgerToDate(today());
}
Hence! you can change parameters dynamically.
Thanks,
Thanks,