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

edited November 2015 in DevShare Downloads
This example was created to update dynamic BirtDateTime parameters for scheduled reports in an Actuate server environment.



This code uses a hidden parameter called "HIDDEN_ReferenceDate" as a reference to determine if this report

was scheduled in an Actuate server or ran manually from within a designer or Actuate server.

This allows recurring jobs with dynamic BirtDateTime parameter values to be updated when the job runs on

a day succeeding the date the job was scheduled.

This is determined because when a report is scheduled, the parameter values are cached on the server for

the next run cycle. Because the parameter values are cached and not the formulas that populate the

parameter values, this results in the parameter "HIDDEN_ReferenceDate" to always have the original value

of when the report was scheduled and not the date it is currently running.



Any additional parameters added to the report that use BirtDateTime in its Default value Expression will

automatically update upon the next scheduled run of the report.

Matthew L.
Actuate is now OpenText
http://www.actuate.com

Sign In or Register to comment.