Automatically update BirtDateTime parameters for scheduled reports in an Actuate server environment.

Matthew L.
edited February 11, 2022 in Analytics #1
This example was created to update dynamic BirtDateTime parameters for scheduled reports in an Actuate server environment.<br />
<br />
This code uses a hidden parameter called "HIDDEN_ReferenceDate" as a reference to determine if this report<br />
was scheduled in an Actuate server or ran manually from within a designer or Actuate server.<br />
This allows recurring jobs with dynamic BirtDateTime parameter values to be updated when the job runs on<br />
a day succeeding the date the job was scheduled.<br />
This is determined because when a report is scheduled, the parameter values are cached on the server for<br />
the next run cycle. Because the parameter values are cached and not the formulas that populate the<br />
parameter values, this results in the parameter "HIDDEN_ReferenceDate" to always have the original value<br />
of when the report was scheduled and not the date it is currently running.<br />
<br />
Any additional parameters added to the report that use BirtDateTime in its Default value Expression will<br />
automatically update upon the next scheduled run of the report.
Warning No formatter is installed for the format ipb