Sample job setup
What is it?
Before you can run a JasperServer report from OpCon, you must gather information about the report from the Jasper web application. This walkthrough shows how to collect the report path, Resource ID, and parameter names needed to build the OpCon command line.
Gather report information from JasperServer
To collect the information needed to configure an OpCon job for a JasperServer report, complete the following steps:
-
Log into the Jasper application. The URL format is:
http://<IP address>:8080/jasperserver-pro/login.htmlThis may be different at your site. The example in this walkthrough uses the community version (JasperServer instead of JasperServer-Pro).

The superuser account for the community version is
jasperadmin.
-
Right-click View and select Repository from the menu.

-
Open the items in the menu on the left until you see the report you want to run.

Right-click each level in the menu on the left and select Properties to find the Resource ID for each level. For example, right-clicking Reports and selecting Properties shows:

Note the Resource ID. Select Cancel to close the dialog.
Right-clicking Samples and selecting Properties shows:

Note the Resource ID. Select Cancel to close the dialog.
Construct the report path by appending these Resource IDs together. This value is used with the
-ReportDirectorycommand line option or in the configuration file. In this example, the path is/Reports/Samples/.cautionThe letter case in the report path is important. Use the exact capitalization shown in the Resource ID.
-
Select the report you want to run to highlight it, then select the Edit button.

-
Review the report details.

Note the Resource ID for this report. This value is used with the
-ReportNamecommand line option. -
Select Controls & Resources.

-
Review the input controls listed. Select the first input control (Country multi select).

-
The input control details are displayed.

Select Next.
-
Note the Parameter Name (read-only) field. This is the name to use in a
-Paramcommand line option.
Select Cancel to return to the input controls list. Repeat steps 8 and 9 for each input control listed.
At this point you have collected all the information needed to build the command line: the report name, the report directory, and all parameter names.
Related topics: