Importing and exporting scheduled tasks

In JReport Server, you can export a scheduled task to a script file which will then be saved on your own disk as a script file. In addition, you can import a script file from the disk file to generate a scheduled task.

To export a scheduled task to a script file and save it in the disk:

  1. On the JReport Console page, click My Tasks on the system toolbar.
  2. In the Scheduled tab, select the rows that one or more scheduled tasks are in.
  3. Click Tools > Export to Script on the task bar of the My Tasks page (if only one task is selected, you can also right-click in the task row and select Export to Script from the shortcut menu, or put the mouse pointer over the task row and click the Export to Script button on the floating toolbar), then modify the script text in the Edit Script box as required.
  4. Click OK to export the specified scheduled task to a script file.
  5. Specify the directory and name for this script file in the File download dialog.

To import a script file from your disk:

  1. On the JReport Console page, click My Tasks on the system toolbar, then select the Scheduled tab.
  2. Click New Schedule on the task bar of the My Tasks page.
  3. In the New Schedule dialog, check the option Import Script to Create Schedule.
  4. Click the Browse button to select a script file from your disk file, then click OK to import the specified script file and modify the script text in the Edit Script box as required.
  5. Click OK to generate a scheduled task.

Note: If you just updated from an older version of JReport Server, there may be some old scripts saved in your server. In order to use these old scripts, you can click the Import old script from server link in the Import Script page to select an old script to import it to generate a scheduled task. To use this link, you must logon JReport Server as an administrator role.