Uploading Suggested File Resources
If needed files are missing, as shown in Suggested Resources in the Resources List, you need to take one of the following actions:
• | Upload resources that the report needs |
• | Select a resource from the repository |
|
If the Controls & Resources page doesn’t suggest resources, perhaps the report doesn’t reference any. However, the server can’t always detect all the referenced resources, as discussed in Uploading Undetected File Resources. |
To upload a resource from the file system
- Procedure
- On the Controls & Resources page, click Add Now in the row of the missing resource, for example, LogoLink. The Locate File Resource page appears.
- Choose Upload a Local File then click Choose File.
- Browse to <js-install>/samples/images. The LogoLink file is not available, but you can use an alternate image, such as <js-install>/samples/images/jasperreports.png.
- Click Open to return to the Locate File Resource dialog.
- Click Next. The Add a Report Resource page appears.
|
Figure 124: Properties of a Resource |
|
The properties include the LogoLink name, resource ID, and description. |
- Click Next to accept the default naming of the file resource.
The Controls & Resources page appears again, showing that the LogoLink resource was added.
To add a resource from the repository
- Procedure
- To add the second resource, click Add Now in the row for AllAccounts_Res2.
- Choose Select a resource from the Repository and Browse to an image file, for example, Public > Samples > Images > Jaspersoft_logo.png.
|
Any image file works. |
- Click Select.
The path to the image appears in the wizard. - Click Next. The Add a Report Resource page displays the properties of the image as set in the uploaded JRXML file.
|
The properties include the LogoLink name, resource ID, and description. These properties don’t redefine the properties of the Jaspersoft_logo.png file in the repository. |
Recommended Comments
There are no comments to display.