Scheduling Reports

Scheduling Reports

Administrators with the applicable roles associated to their user ID may schedule reports to run on the Scheduled Jobs or Job List page.

To create a scheduled report, right-click a report on the Library or Repository pages, and then click the Schedule option in the pop-up menu.

Note: The Schedule menu option only displays on the menu for users with administrator-level privileges and the applicable role associated to the user ID.

The Scheduled Jobs page displays the internal ID number of the job, the job name, the owner or user who created the job, the state of the job, the last and next run of the job.

 

Fields Description
Job ID Internal job number automatically assigned by XRA.
Job Name Name of the job you entered when you created the schedule.
Owner Owner or user who created the job.
State

A job can have one of the following states:

  • Normal: XRA has scheduled the job.
  • Paused: The job has been disabled by clearing the Enabled check box. Click the Enabled check box to activate the scheduled run.
  • Running: XRA is outputting the report.
  • Complete: XRA has finished running the job. The report is in the repository.
  • Error: The scheduler encountered an error while scheduling or starting the job.
Last Ran The date and time of the last scheduled job run.
Next Run The date and time of the next scheduled job run.
Enabled Clear this check box to pause a job. To resume the job for the next scheduled time to run, select the check box.

Two icons for editing and removing jobs appear at the end of each scheduled job row.

The following buttons display above the job list:

Buttons Description
Back Reloads your list of reports.
Create Schedule Opens the scheduling wizard's New Schedule page.
Run Now Runs a report in the background, especially if it is a long-running report, which means you can continue working without interrupting your workflow.
Refresh List Refreshes the list of jobs, which allows you to check if a job has finished.

Setting Up a Job Schedule

Administrators use the report scheduler wizard to set up the jobs on the following tabs:

Tabs Description
Schedule Set up when to run a report job and how often.
Parameters Select the job's report parameters, if the report has input controls. The parameters filter or limit what appears in a report.
Output Options Enter the report's file options, such as the name, description, locale, format, and output destination.
Notifications Set up email notifications for when the scheduler runs the job and the job's status.

A scheduled job runs a report in the background. Only the data that you have access to will be displayed in a scheduled report.

To set up a job

1.   Open the Repository pane. Do one of the following:
2.   Select the report or use the search field to find the report you want to schedule.
3.   Right-click the report and select Schedule from the context menu. Alternatively, if the report has a schedule, click the report's schedule icon .

The Scheduled Jobs page appears.

4.   Click Create Schedule.

The New Schedule page displays the Schedule tab. The Schedule for line shows the path to the selected report.

5.   Set the following options in the Schedule Start section:
6.   In the Recurrence section, select one of the following options in the Recurrence Type list box:
7.   If the scheduled report has input controls that prompt for user input, click the Parameters tab. See Scheduling Reports.
8.   Click the Output Options tab and set up the format of the report. See Setting Output Options.
9.   Click the Notifications tab and set up the email notifications. See Setting Up Notifications.
10.   Click Save.

Setting Report Parameters

If a report has user input parameters set up, you can change them on the Parameters tab.

To set report parameters

1.   Open the Repository pane. Do one of the following:
2.   Select the report or use the search field to find the report.
3.   Right-click the report and select Schedule... from the context menu. Alternatively, if the report has a schedule, click the report's schedule icon .

The New Schedule page appears.

4.   Select a set of saved values or set the following input values:
5.   Click Save or click Save Current Values if you changed values that were already set up.

Setting Output Options

You can set up how to output the scheduled report on the Output Options tab. It covers report naming, time zones, available file formats, file handling, and output destinations.

To set up the output options for the scheduled report

1.   Open the Repository pane. Do one of the following:
2.   Select the report or use the search field to find the report.
3.   Right-click the report and select Run in Background... from the context menu.

The New Schedule page displays the Output Options tab. The Schedule for line shows the path to the selected report.

4.   Set the following options in the Output File Options section:
5.   Click Save.

Setting Up Notifications

1.   Open the Repository pane. Do one of the following:
2.   Use the search field or Filters to find the report you want to run.
3.   Right-click the report and select Run in Background from the context menu.

The Output page appears as shown in the figure “Output Page for Scheduling a Report – Output File Options”.

4.   Set the output format and location, as described in Setting Output Options. By default, the report output is saved in the repository.
5.   (Optional) If the report you are running has input controls that prompt for user input, click the Parameters tab. Choose a set of saved values, or set the fields one at a time.
6.   (Optional) Click the Notifications tab and set up email notifications, as described in Setting Up Notifications.
7.   Click Save.

The report begins to run immediately.

If the report already has a schedule that you want to add, modify, or delete, click beside the report name.

Running Reports and the Report Viewer

 

Schedule the job to start at a specific time

1.   In Start Job, select On.
2.   Click.

The calendar appears.

3.   Click a date.
4.   To set the time for the job to run, at the bottom of the calendar, repeatedly click the hours and minutes. To close the calendar, click a blank spot on the Scheduler page.

The selected date for starting the job appears in the calendar field.

5.   In Recurrence, accept the default setting, None to run the report only once.
6.   Click Next.

Set Up the Job Page

If you select Simple or Calendar Recurrence, additional controls appear on the page.

JasperReports Server User Guide

If the report you are scheduling has input controls that prompt for user input, the Set the Parameter Values page appears:

For more information about using saved values and saving input values, see the JasperReports Server User Guide section 3.7, “Running a Report with Input Controls or Filters”.

1.   Choose a set of saved values, or set the input controls. This example uses the saved values for USA.
2.   Click Next.

The Output Settings page appears.

3.   Set output options and click Submit to schedule the job.