If you want to validate the JRXML before uploading it, use iReport. The server doesn’t validate the JRXML when you upload it.
This procedure shows you how to set up a name for the report in the repository and upload the main JRXML file that references all other elements.
To upload the main JRXML for the simple report example:
1. | Log into the server as administrator and select View > Repository. |
|
If you log in as a user, you can upload a report unit to the server, but this example requires an administrator login to access the image resources. |
2. | Locate the folder where you want to add the report. |
For example, go to Organization > Reports.
3. | Right-click the Reports folder and select Add Resource > JasperReport from the context menu. |
|
Add Resource only appears on the context menu if your user account has write permission to the folder. |
The Set Up the Report page of the JasperReport wizard appears.
4. | In Naming, enter the name and description of the new report, and accept the Resource ID generated as you type the name: |
• | Name |
Display name of the report: New Simple Report
• | Resource ID |
Permanent designation of the report object in the repository: New_Simple_Report
• | Description |
Optional description displayed in the repository: This is a simple example
5. | Select Upload a Local File and Browse to <js-install>samples/reports/AllAccounts.jrxml. |
|
You can upload a new JRXML or select a JRXML from the repository. |
In “Required Set Up Values” you can see the Set Up the Report page.
|
Required Set Up Values |
6. | Click Controls & Resources. |
The server uploads the main JRXML file. The Controls & Resources page reappears with a message to locate suggested resources.
|
Suggested Resources in the Resources List |
The suggested resources are missing resources that the server needs to validate and run the report. In this example, suggested resources are the hyperlinked names of images:
• | Logolink |
• | AllAccounts_Res2 |
Next, upload the suggested file resources.