Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Report in batch, date dialog

$
0
0

 


Hello,

I have a report that pulls a date from a dialog box.

When I schedule a batch for this report (say every week night), the date
always stays the same as when you scheduled it. I want to initialize the
date every night with the current date (today()). I've tried to initialize
the date in the getFromDialog, fetch, init and other methods of the report
but it seems like these methods are not being called when the batch is ran.
Here is what I've tried:

public boolean fetch()
{
SysReportRun sysReportRun;
;

sysReportRun = this;
if (sysReportRun.isBatchMode())
{
runDate = today();
}
}

public void init()
{
;
runDate = today();
super();

}

etc etc.

I've also used infolog messages in these methods so I can see if the batch
is actually calling the methods but when I look at the info on the batch,
there is nothing in there.

Is there some property or something else that I am missing in order to get
this to work properly? I have other reports that are similar that work fine
in batch mode but I am not able to see any difference. (both are scheduled
to run on server etc etc).

Any assistance would be appreciated.

Thanks.
 

Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>