
Example 1: Publishing a report set to the versioning system
In this example, a task is set up and will be performed immediately. The generated result is asked to be kept for 30 days.
- On the JReport Console > Reports page, select the row that the report set is in.
- Click Run > Schedule on the task bar of the Reports page to display the Schedule dialog.
- In the General tab,
- Specify a name for the task in the Schedule Name text box.
- Assign a priority to the task from the Priority drop-down list.
- In the Enter Parameters panel, select the reports you want to run from the report set.
- If the selected reports have parameters, specify the parameter values as required.
- Expand the Report Set Info panel, click Select Another Catalog to specify another catalog for the report set if required.
- Select the report set version and catalog version from the corresponding drop-down lists.
- Expand the Advanced panel, if the report set has a style group, check the Enable Style Group checkbox and choose the style group.
- Check the Enable Converting Encoding option if required and specify the encoding before and after converting from the corresponding drop-down lists.
- Enter a name for the task in the Name of the schedule field.
- Define the encoding for the report set by selecting from the drop-down list.
- Check Use the default DB user and password defined in catalog.
- Check the Add TaskListener to be Invoked option, and input the class name (for details, see Adding TaskListener).
- Check the Enable Auto Recover Task option to specify auto recovering settings.
- In the Publish tab,
- Click the To Version sub tab, then check Publish to Versioning System.
- Select the required format(s) and set the format settings.
- Check the Built-in Version Folder option in Archive Location to save the report set result version in the built-in version folder.
- Set 0 for the Maximum Number of Versions.
- Check the Result Auto-delete option and define the result to expire in 30 days.
- In the Conditions tab, select the Time sub tab, define the time zone from the Time Zone drop-down list, then from the Time Type drop-down list, choose Run this task immediately.
- If you want to notify someone of when the task is finished by sending an e-mail, go to the Notification tab and then set the settings.
- If you want to specify a timeout for the task, specify the settings in the Duration tab as required.
- Click Finish to have the task performed.
Then, click My Tasks on the system toolbar. While the task is being performed, you can see a record of it in the Running tab. On completion it will be put into the Completed tab.
Notes:
- When publishing a report set to XML format, if you want to use the URL to get the .xsd file, follow the steps below:
- Put the existing XML schema file in
<intall_root>\public_html.
- Input
http://IP address:8888/name of the existing XML schema file.
- There is another way to publish the report set result to version. If you have set the property server.version.from.temp to true in the server.properties file in
<install_root>\bin, or selected the option Enable "Publish to Versioning System" for Background Tasks View in the Advanced tab of the JReport Administration > Configuration page, you will get the link Publish to Version System on the system toolbar of the JReport Console page. Click the link to publish the result to version.
