Adding, Modifying, and Deleting Resources

1. If the Repository Explorer is not open, click Window>Show View>Repository Explorer.
2. Double-click your JasperReports Server instance to expand its repository.
3. To add a resource, right-click a folder, select New, and then select the type of object you want to add.

If you choose to add any item other than a JasperReport, a dialog for entering the location and other information about the object appears. If you choose to add a JasperReport, a wizard guides you through the process. For the best results when adding a JasperReport, open the JRXML in Jaspersoft Studio, and click . Follow the steps in the wizard to publish your report. For more information, see Publishing a Report to JasperReports Server

4. To change the location of a resource in the repository, locate the object, then drag it to the new location.

Or, perform the following steps:

a. Right-click the object and select Copy or Cut. You can also use the keyboard shortcuts: Ctrl-C and Ctrl-X, respectively.
b. Locate the destination, right-click, and select Paste. You can also use the keyboard shortcut: Ctrl-V.

When cutting the object, it is not removed from its original location until pasted in the new location.

5. To delete a resource from the repository, locate the object, right-click it, and select Delete. You must confirm your action to prevent accidental deletions.
6. To modify a resource, find it in the Repository Explorer, right-click the resource, and select Properties.

In the Properties dialog appears. The number of tabs in the dialog depends on the type of resource:

7. On the General tab, view the object’s repository ID, name, and description.

If you are logged in as a user with sufficient access rights (such as jasperadmin or superuser), you can modify property values and save them back to the repository.

The tabs that appear depend on the type of object you are editing. The Resource Editor tab includes basic properties, such as the name, ID, and description of the object. The ID isn't editable.

Other tabs contain controls that are specific to each type of resource. For example, images have an Image tab that allows you to view, download, and replace the image. Simply click Upload/Download Resource, and choose the appropriate option.

For example, in the Repository Navigator, you can replace a resource on one server with a resource on another: Connect to both servers using the plug-in, export an image from server 1, open image properties on server 2, and upload the file you exported from server 1.

Other types of objects have more complicated options. For example, the Data Source tab of a data source allows you to change connection properties, such as the driver, URL, user credentials and time zone; you can also replace the data source.

8. Change an input control from the Input Control Details tab:

Properties of an Input Control Resource

9. Click Save in the Properties dialog box to make the changes effective in the repository.
Version: 
Feedback