Beliebte Suchanfragen

Cloud Native

DevOps

IT-Security

Agile Methoden

Java

//

JasperReports Tutorial: Dynamic Drill-Down Reports with MongoDB (Part 2 of 2)

21.7.2013 | 10 minutes of reading time

Let’s continue our work begun in part one of the tutorial!

Step 3: The drilldown

Step 3.1: iReport to JasperServer

First, let’s connect iReport to the JasperServer, so that working with it becomes easier.

In iReport, click on the Repository Navigator (if it’s not available select “Window” -> “JasperReports Server Repository”) followed by the “Add new server”-button:

In the dialogue that opens, we’ll need to provide the data required by iReport to successfully connect to the server:

  • ID: an arbitrary name to identify the connection. This will be used in the Repository Navigator.
  • URL: the URL to reach the REST-API interface of the server. For you, the defaults should be fine. I had to install the server on another computer because my evaluation license expired while writing this tutorial, so I could no longer use localhost 😉
  • Organization: enter ‘organization_1’.
  • Username/Password: enter ‘jasperadmin’ in both fields.

Click “Save” and then check if the connection works by expanding the newly created server-node in the Repository Navigator:

In case you are wondering, which other users are available on the server you can open the login page in a browser (http://:/jasperserver-pro/login.html) and click on the following link:

This will give an overview of the users available by default / in the trial edition.

Step 3.2: The datasource (again?)

Yes, again: reports don’t connect to a datasource per se; it’s the execution environment that does so – up until now that has been iReport (for the report previews).

Since we want to execute the report in the server to use drill downs, the server needs to get access to our MongoDB-instance.

In the Repository Navigator, right-click on the “Data Sources” node , select “Add” followed by “Data Source”. This will open the following dialogue:

You’ll have to provide an ID and a name. The ID should not contain whitespaces or special characters because it is used in the URI for the REST-API and if you’d wanted to access it, you’d have to URL-encode those characters.

The name is used in the Repository Navigator, so can contain any character you like.

The second tab called “Data Source Details” contains the actual connection information. Just enter the same as you did when configuring the datasource for iReport:

Click “Save” to store the datasource.

Now, let’s test if it works.

Step 3.3: The report on the server

Now it’s time to export our report to the server and check if everything works.

First, in the Repository Navigator, right-click on the “Reports”-node, select “Add” -> “Folder” give it the ID and name “Omnibus” and click “Save”.

Now, right-click the newly created folder, select “Add” and choose “JasperServer Report”. This opens a wizard that requires you to provide ID and name on its first page. Enter “Main” for both and click “Next”.

The next page asks you to provide the actual report:

Select “Locally Defined” and provide the path to the report; either by clicking “Browse” or if you have the report open by clicking “Get source from current opened report”.

Hit “Next” to continue and provide the datasource to use:

Select “From the repository”, click “Browse” and locate the datasource we created previously.

Click “Finish” to store the report on the server:

Open a browser and login to the server with user “jasperadmin”.

In the menu, choose “View” and select “repository” to open the server repository:

Locate the report’s node we just created in iReport and execute the report by following the link named “Main”:

After a short while you should be presented with your familiar report.

I believe, congratulations are in order 🙂

Step 3.4: The drilled down report

Now, let’s create the view of the report that will show the filtered results.

This is done best by copying the main report and then modifying that copy accordingly.

So, to get started, repeat step 3.1 but name the new report “Detail” instead of “Main”:

Make sure, that it’s working by executing it on the server.

Back in iReport, close any open report files, locate the report we just created in the server repository and open it by double-clicking it. This should open a temporary file named “file_.jrxml”:

Whenever you edit a report from and want to update the version on the server, you can right-click on the report-file in the Repository Navigator and select “Replace with current document”.

Now, instead of walking you in all detail through the steps required to change the report, I will let you try to get it working – it isn’t that difficult. The screenshots at the start of this tutorial and the following hints should let you do it:

  • The report will need the following parameters:
    • question: the question that was selected (that is: drilled-down from).
    • answer: the answer that was selected (that is: drilled-down from).
    • respondent_ids: a comma separated list of those respondent_ids, that chose the selected answer to the selected question.
  • The query needs to be changed to take the respondent_ids into account – we want to filter the data, after all (you can access JasperReport parameters in a query with ‘$P’; add a ‘!’ to let JasperReport handle quoting as appropriate):
    • findQuery: {respondent_id: {‘$in’: [$P!{respondent_ids}]}}

Ok, ok, I won’t be cruel – you can download the finished detail report from here:

https://public.centerdevice.de/412673eb-affe-468a-99ef-18fc569b62be

You also need to provide JasperReports Server input controls for the three parameters that are required by the report. These input controls are used to present users of the reports with a gui to input the values themselves as well as to automatically map HTTP request parameters to the corresponding values; the latter feature is the one that we will be using.

In the Repository Navigator, locate the node for the detail report; expand it and right-click on the node “Input Controls” and choose “Create a local input control”. In the dialogue that opens you have to provide the following data:

  • “General” tab
    • ID: this has to be the parameter name as used in the report. In our case “question”, “answer” and “respondent_ids” respectively.
    • name: an arbitrary name that will be displayed to the user; I used “Question”, “Answer” and “Respondent IDs”.
  • “Input Control Details” tab
    • Type: select “Single Value” for each.
    • Mandatory: true
    • Visible: false (if you choose true, the user will be presented a dialogue to input values even when they are automatically provided by request parameters.)
    • Locate (Datatype): Select “From Repository”, click “Browse” and navigate to “datatypes”.

      Select “TextGeneralDatatype” from that folder and click “Open Resource”.

Hit “Save”.

Make sure to create input controls for all three parameters we need. After you have done so you can even test the detail report; JasperReports Server will now show you a more meaningful error message than before:

Step 3.5: Link main and detail

We are almost done (really!)

All that is left to do is linking main and detail so that the user can click on a pie of a chart and filter the report by the selected answer.

In order to do that, we need our main report to provide the parameters required by the detail report – while enhancing its pie chart to function as a hyperlink.

Collecting the respondent_ids

Before the respondent_ids can be passed to the detail report, they need to be collected in a variable.

In the Repository Navigator, locate the main report and open it by double-click. Then in the Report Inspector right-click on “Variables” and select “Add Variable”. The following properties need to be configured for the new variable:

  • Name: arbitrary name; I chose “respondent_ids”.
  • Reset type: configures, when the variable should be reset (cleared). Since we want the “respondent_ids” to be collected for each answer-group, we select “Group”.
  • Reset group: select the group to reset on; “answer”, of course.
  • Variable Expression: enter the expression to create a comma separated list of the respondent_ids (remember: it’s Groovy):
    • ($V{respondent_ids}==””?$F{respondent_id}:$V{respondent_ids}+”,”+$F{respondent_id})
  • Initial Value Expression: the empty String “”.

You can check if the variable is correctly generated by placing a “Text Field” into the “answer Group Footer 1” band, selecting “$V{respondent_ids}” for its expression (you might also want to enable “Stretch With Overflow” so that all values get printed) and generating a preview – be warned, though, that the preview will take a while to generate and will be around 200 pages long.

Save your work and upload it to the server.

Hyperlinking from chart to detail

We now have all the ingredients available to hyperlink from the pie chart of the main report to the detail report.

In general, when one wants to hyperlink to a report being executed on the JasperReports Server, one can drag the target report (that is, the one being linked to) unto the component on the originating report (the one being linked from) and let iReport generate the necessary parameters.

However, since we want a different hyperlink from each section of the pie chart, we cannot use this mechanism as is. We can only use the link-parameter “_report” that iReport generates for us:

In the Repository Navigator, drag the Folder (not the report file!) of our detail report unto the pie chart element of the main report.

This causes a dialogue to open, which you could use to configure a hyperlink – but that we cannot use (as stated above). However, open the tab “Link parameter” and note the value of the parameter “_report” – we are going to need that shortly:

The value is the path of IDs (not names!) to locate the detail report using the REST-API.

We do not want this hyperlink, so for “Hyperlink target” select “Blank” and for “Hyperlink type” select “None” before closing the dialogue.

Next, right-click the pie chart and select “Chart Data”. In the following dialogue, select the tab “Details”, “Pie series” and “Section hyperlink” and configure the values I did:

The values should by self-explanatory by now.

Save your work and upload it to the server.

Let’s try it out!

When you execute the main report, the pie charts should now by hyperlinks. But, if you click one, you should get to see something like this:

What is it NOW? (It’s not working, dude!)

Take a look at the URL that the browser tried to load. Here is mine:

1```wp_syntax
2http://192.168.0.100:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=%2Freports%2FOmnibus%2FDetail&question=Do+you+have+a+cell+phone%3F&answer=Yes&respondent_ids=100005.0%2C100008.0%2C100010.0%2C100012.0%2C100020.0%2C100025.0%2C100028.0%2C100037.0%2C100043.0%2C100046.0%2C100049.0%2C100050.0%2C100051.0%2C100052.0%2C100053.0%2C100070.0%2C100077.0%2C100084.0%2C100090.0%2C100092.0%2C100099.0%2C100103.0%2C100109.0%2C100111.0%2C100121.0%2C100136.0%2C100138.0%2C100140.0%2C100142.0%2C100148.0%2C100150.0%2C100151.0%2C100157.0%2C100161.0%2C100163.0%2C100167.0%2C100182.0%2C100192.0%2C100193.0%2C100204.0%2C100214.0%2C100217.0%2C100219.0%2C100221.0%2C100222.0%2C100225.0%2C100248.0%2C100250.0%2C100257.0%2C100259.0%2C100261.0%2C100267.0%2C100273.0%2C100274.0%2C100275.0%2C100283.0%2C100284.0%2C100295.0%2C100308.0%2C100312.0%2C100314.0%2C100315.0%2C100322.0%2C100326.0%2C100330.0%2C100333.0%2C100340.0%2C100343.0%2C100344.0%2C100353.0%2C100361.0%2C100363.0%2C100376.0%2C100377.0%2C100378.0%2C100380.0%2C100381.0%2C100383.0%2C100403.0%2C100412.0%2C100418.0%2C100419.0%2C100425.0%2C100426.0%2C100441.0%2C100448.0%2C100462.0%2C100478.0%2C100479.0%2C100486.0%2C100508.0%2C100510.0%2C100515.0%2C100520.0%2C100533.0%2C100536.0%2C100553.0%2C100555.0%2C100564.0%2C100569.0%2C100570.0%2C100571.0%2C100578.0%2C100594.0%2C100595.0%2C100605.0%2C100610.0%2C100621.0%2C100622.0%2C100623.0%2C100634.0%2C100635.0%2C100639.0%2C100643.0%2C100661.0%2C100670.0%2C100673.0%2C100686.0%2C100697.0%2C100699.0%2C100708.0%2C100711.0%2C100717.0%2C100724.0%2C100728.0%2C100730.0%2C100732.0%2C100739.0%2C100742.0%2C100746.0%2C100750.0%2C100751.0%2C100754.0%2C100758.0%2C100762.0%2C100769.0%2C100771.0%2C100772.0%2C100776.0%2C100783.0%2C100791.0%2C100792.0%2C100798.0%2C100804.0%2C100806.0%2C100810.0%2C100814.0%2C100817.0%2C100835.0%2C100848.0%2C100852.0%2C100857.0%2C100859.0%2C100860.0%2C100863.0%2C100870.0%2C100873.0%2C100884.0%2C100888.0%2C100892.0%2C100923.0%2C100925.0%2C100926.0%2C100931.0%2C100933.0%2C100935.0%2C100949.0%2C100962.0%2C100974.0%2C100984.0%2C100992.0%2C100998.0%2C101007.0%2C101008.0%2C101019.0%2C101021.0%2C101050.0%2C101051.0%2C101054.0%2C101064.0%2C101066.0%2C101070.0%2C101072.0%2C101073.0%2C101074.0%2C101075.0%2C101080.0%2C101081.0%2C101082.0%2C101083.0%2C101094.0%2C101104.0%2C101108.0%2C101115.0%2C101118.0%2C101122.0%2C101125.0%2C101150.0%2C101153.0%2C101154.0%2C101159.0%2C101162.0%2C101169.0%2C101170.0%2C101177.0%2C101184.0%2C101187.0%2C101189.0%2C101193.0%2C101194.0%2C101199.0%2C101211.0%2C101213.0%2C101217.0%2C101227.0%2C101228.0%2C101234.0%2C101238.0%2C101257.0%2C101259.0%2C101261.0%2C101262.0%2C101264.0%2C101275.0%2C101285.0%2C101292.0%2C101295.0%2C101301.0%2C101305.0%2C101314.0%2C101315.0%2C101320.0%2C101321.0%2C101327.0%2C101331.0%2C101338.0%2C101341.0%2C101346.0%2C101348.0%2C101351.0%2C101355.0%2C101359.0%2C101363.0%2C101365.0%2C101385.0%2C101407.0%2C101419.0%2C101422.0%2C101439.0%2C101440.0%2C101441.0%2C101446.0%2C101447.0%2C101448.0%2C101449.0%2C101455.0%2C101458.0%2C101468.0%2C101505.0%2C101506.0%2C101508.0%2C101511.0%2C101516.0%2C101521.0%2C101525.0%2C101528.0%2C101534.0%2C101538.0%2C101559.0%2C101563.0%2C101564.0%2C101574.0%2C101575.0%2C101586.0%2C101590.0%2C101592.0%2C101603.0%2C101616.0%2C101632.0%2C101633.0%2C101638.0%2C101641.0%2C101645.0%2C101649.0%2C101667.0%2C101669.0%2C101672.0%2C101674.0%2C101677.0%2C101679.0%2C101683.0%2C101684.0%2C101685.0%2C101698.0%2C101703.0%2C101709.0%2C101718.0%2C101719.0%2C101722.0%2C101727.0%2C101728.0%2C101732.0%2C101735.0%2C101742.0%2C101743.0%2C101744.0%2C101747.0%2C101749.0%2C101752.0%2C101765.0%2C101768.0%2C101775.0%2C101777.0%2C101781.0%2C101783.0%2C101784.0%2C101788.0%2C101797.0%2C101798.0%2C101804.0%2C101807.0%2C101810.0%2C101821.0%2C101833.0%2C101840.0%2C101844.0%2C101854.0%2C101856.0%2C101858.0%2C101859.0%2C101861.0%2C101863.0%2C101873.0%2C101874.0%2C101876.0%2C101882.0%2C101888.0%2C101892.0%2C101897.0%2C101906.0%2C101912.0%2C101916.0%2C101926.0%2C101931.0%2C101932.0%2C101944.0%2C101947.0%2C101960.0%2C101965.0%2C101974.0%2C101976.0%2C101979.0%2C101981.0%2C101986.0%2C101991.0%2C101992.0%2C101999.0%2C102003.0%2C102007.0%2C102020.0%2C102021.0%2C102034.0%2C102038.0%2C102058.0%2C102059.0%2C102076.0%2C102079.0%2C102086.0%2C102090.0%2C102096.0%2C102105.0%2C102111.0%2C102121.0%2C102125.0%2C102128.0%2C102130.0%2C102133.0%2C102138.0%2C102157.0%2C102161.0%2C102162.0%2C102166.0%2C102185.0%2C102186.0%2C102216.0%2C102225.0%2C102229.0%2C102230.0%2C102233.0%2C102261.0%2C102289.0%2C102300.0%2C102302.0%2C102310.0%2C102313.0%2C102319.0%2C102326.0%2C102330.0%2C102332.0%2C102337.0%2C102343.0%2C102365.0%2C102367.0%2C102368.0%2C102377.0%2C102383.0%2C200003.0%2C200008.0%2C200019.0%2C200021.0%2C200027.0%2C200034.0%2C200038.0%2C200042.0%2C200048.0%2C200055.0%2C200058.0%2C200059.0%2C200062.0%2C200073.0%2C200077.0%2C200078.0%2C200079.0%2C200087.0%2C200089.0%2C200095.0%2C200096.0%2C200097.0%2C200106.0%2C200118.0%2C200119.0%2C200124.0%2C200139.0%2C200140.0%2C200144.0%2C200145.0%2C200146.0%2C200150.0%2C200157.0%2C200158.0%2C200165.0%2C200173.0%2C200176.0%2C200178.0%2C200179.0%2C200189.0%2C200195.0%2C200198.0%2C200200.0%2C200204.0%2C200213.0%2C200219.0%2C200220.0%2C200221.0%2C200223.0%2C200233.0%2C200235.0%2C200256.0%2C200268.0%2C200286.0%2C200294.0%2C200298.0%2C200299.0%2C200306.0%2C200309.0%2C200310.0%2C200311.0%2C200320.0%2C200327.0%2C200335.0%2C200339.0%2C200350.0%2C200354.0%2C200359.0%2C200364.0%2C200367.0%2C200368.0%2C200377.0%2C200388.0%2C200393.0%2C200397.0%2C200398.0%2C200414.0%2C200417.0%2C200418.0%2C200419.0%2C200430.0%2C200438.0%2C200443.0%2C200444.0%2C200450.0%2C200455.0%2C200458.0%2C200464.0%2C200472.0%2C200480.0%2C200481.0%2C200496.0%2C200514.0%2C200534.0%2C200538.0%2C200545.0%2C200546.0%2C200572.0%2C200578.0%2C200589.0%2C200590.0%2C200592.0%2C200605.0%2C200609.0%2C200618.0%2C200636.0%2C200637.0%2C200655.0%2C200663.0%2C200664.0%2C200666.0%2C200673.0%2C200675.0%2C200676.0%2C200681.0%2C200683.0%2C200686.0%2C200696.0%2C200697.0%2C200700.0%2C200717.0%2C200718.0%2C200719.0%2C200730.0%2C200738.0%2C200739.0%2C200742.0%2C200743.0%2C200749.0%2C200754.0%2C200758.0%2C200759.0%2C200761.0%2C200765.0%2C200768.0%2C200771.0%2C200772.0%2C200790.0%2C200796.0%2C200797.0%2C200809.0%2C200811.0%2C200814.0%2C200815.0%2C200820.0%2C200823.0%2C200826.0%2C200840.0%2C200855.0%2C200860.0%2C200861.0%2C200865.0%2C200867.0%2C200868.0%2C200869.0%2C200876.0%2C200877.0%2C200886.0%2C200889.0%2C200896.0%2C200897.0%2C200898.0%2C200899.0%2C200906.0%2C200911.0%2C200917.0%2C200925.0%2C200928.0%2C200929.0%2C200933.0%2C200936.0%2C200937.0%2C200939.0%2C200941.0%2C200947.0%2C200955.0%2C200961.0%2C200962.0%2C200970.0%2C200973.0%2C200975.0%2C200977.0%2C200997.0%2C200998.0%2C201006.0%2C201010.0%2C201015.0%2C201017.0%2C201018.0%2C201019.0%2C201025.0%2C201037.0%2C201043.0%2C201048.0%2C201053.0%2C201055.0%2C201059.0%2C201068.0%2C201070.0%2C201072.0%2C201074.0%2C201077.0%2C201079.0%2C201080.0%2C201084.0%2C201088.0%2C201094.0%2C201103.0%2C201104.0%2C201110.0%2C201116.0%2C201119.0%2C201126.0%2C201138.0%2C201142.0%2C201148.0%2C201151.0%2C201154.0%2C201157.0%2C201162.0%2C201172.0%2C201173.0%2C201183.0%2C201189.0%2C201190.0%2C201204.0%2C201209.0%2C201217.0%2C201218.0%2C201226.0%2C201231.0%2C201233.0%2C201235.0%2C201257.0%2C201282.0%2C201284.0%2C201286.0%2C201290.0%2C201291.0%2C201301.0%2C201304.0%2C201305.0%2C201310.0%2C201311.0%2C201312.0%2C201317.0%2C201318.0%2C201319.0%2C201324.0%2C201333.0%2C201357.0%2C201359.0%2C201361.0%2C201362.0%2C201368.0%2C201374.0%2C201377.0%2C201385.0%2C201386.0%2C201391.0%2C201395.0%2C201400.0%2C201414.0%2C201416.0%2C201417.0%2C201423.0%2C201438.0%2C201442.0%2C201443.0%2C201444.0%2C201448.0%2C201454.0%2C201463.0%2C201467.0%2C201468.0%2C201473.0%2C201474.0%2C201480.0%2C201486.0%2C201498.0%2C201499.0%2C201501.0%2C201505.0%2C201515.0%2C201521.0%2C201522.0%2C201526.0%2C201534.0%2C201535.0%2C201547.0%2C201555.0%2C201569.0%2C201579.0%2C201586.0%2C201589.0%2C201590.0%2C201591.0%2C201592.0%2C201595.0%2C201599.0%2C201608.0%2C201614.0%2C201625.0%2C201631.0%2C201632.0%2C201633.0%2C201634.0%2C201638.0%2C201645.0%2C201649.0%2C201653.0%2C201656.0%2C201666.0%2C201668.0%2C201670.0%2C201671.0%2C201692.0%2C201695.0%2C201703.0%2C201704.0%2C201710.0%2C201716.0%2C201721.0%2C201727.0%2C201728.0%2C201730.0%2C201734.0%2C201735.0%2C201737.0%2C201738.0%2C201744.0%2C201748.0%2C201750.0%2C201751.0%2C201758.0%2C201759.0%2C201766.0%2C201769.0%2C201792.0%2C201793.0%2C201800.0%2C201801.0%2C201805.0%2C201806.0%2C201807.0%2C201813.0%2C201814.0%2C201831.0%2C201832.0%2C201833.0%2C201850.0%2C201865.0%2C201866.0%2C201880.0%2C201891.0%2C201897.0%2C201905.0%2C201914.0%2C201915.0%2C201916.0%2C201920.0%2C201922.0%2C201928.0%2C201929.0%2C201932.0%2C201934.0%2C201944.0%2C201952.0%2C201953.0%2C201955.0%2C201962.0%2C201968.0%2C201971.0%2C201977.0%2C201989.0%2C201995.0%2C202001.0%2C202009.0%2C202013.0%2C202014.0%2C202020.0%2C202021.0%2C202053.0%2C202065.0%2C202066.0%2C202071.0%2C202080.0%2C202093.0%2C202106.0%2C202107.0%2C202109.0%2C202111.0%2C202113.0%2C202116.0%2C202120.0%2C202123.0%2C202131.0%2C202140.0%2C202141.0%2C202150.0%2C202163.0%2C202166.0%2C202170.0%2C202173.0%2C202193.0%2C202194.0%2C202195.0%2C202197.0%2C202200.0%2C202206.0%2C202207.0%2C202214.0%2C202218.0%2C202220.0%2C202225.0%2C202226.0%2C202243.0%2C202246.0%2C202247.0%2C202256.0%2C202257.0%2C202261.0%2C202281.0%2C202292.0%2C202302.0%2C202308.0%2C202321.0%2C202322.0%2C202323.0%2C202325.0%2C202330.0%2C202338.0%2C202369.0%2C202376.0%2C202380.0%2C202423.0%2C202426.0%2C202433.0%2C202436.0%2C202437.0%2C202440.0%2C202444.0%2C202452.0%2C202454.0%2C202461.0%2C202482.0%2C202489.0%2C202493.0%2C202497.0%2C202501.0%2C202510.0%2C202511.0%2C202517.0%2C202518.0%2C202520.0%2C202523.0%2C202527.0%2C202537.0%2C202543.0%2C202544.0%2C202551.0%2C202566.0%2C202570.0%2C202571.0%2C202606.0%2C202619.0%2C202624.0%2C202629.0%2C202631.0%2C202632.0%2C202633.0%2C202648.0%2C202657.0%2C202663.0%2C202676.0%2C202683.0%2C202685.0%2C202706.0%2C202708.0%2C202709.0%2C202710.0%2C202734.0%2C202735.0%2C202736.0%2C202737.0%2C202746.0%2C202753.0%2C202764.0%2C202769.0%2C202772.0%2C202773.0%2C202776.0%2C202811.0%2C202816.0%2C202824.0%2C202832.0%2C202842.0%2C202845.0%2C202848.0%2C202856.0%2C202858.0%2C202861.0&_eventId_drillReport=&_flowExecutionKey=e5s3&reportLocale=de_DE

<p>In other words: it’s too long!</p><p>Most, if not all HTTP servers have a limit of the amount of bytes they are accepting in an HTTP header – Apache Tomcat, which JasperReports Server uses in our standalone version, is no exception and accepts 8192 bytes by default. Anything bigger will get truncated and therefore will most likely not constitute a valid HTTP header.</p><p>Since it is not possible to somehow get JasperReports Server to use HTTP-POST instead of HTTP-GET to transmit the request parameters, we need to (and indeed, we can) configure Tomcat to increase this limit using the maxHttpHeaderSize parameter; 65Kb should be enough.</p><p>Locate the installation directory of your JasperReport Server installation. Inside, locate the directory “apache-tomcat/conf” and open the file “server.xml”.</p><p>Look for the connector for port 8080 (the default; if you installed JasperReports Server on another port you’ll have to locate that connector instead) and add the parameter:</p><p><a href="https://media.graphassets.com/4lsqW8iEQ3e2Gzs5AcS3"><img loading="lazy" alt="Screen 58" src="https://media.graphassets.com/4lsqW8iEQ3e2Gzs5AcS3" width="300" height="111" /></a> </p><p>Save and close the file and restart JasperReports Server.</p><p>When you check the reports again, the hyperlinks from main to detail should be working.</p><p>Finally, we are done – really. No more errors; it should truly work as desired.</p><p>That’s it from me. I hope, you’ve found my tutorial worthwhile and if you want to dig deeper into the ins and outs of JasperReports, I suggest reading the various ultimate guides available on the following JasperSoft site:<br /> <a href="http://community.jaspersoft.com/documentation">http://community.jaspersoft.com/documentation</a> .</p><p>Thank’s for your time!</p>

share post

Likes

0

//

More articles in this subject area

Discover exciting further topics and let the codecentric world inspire you.

//

Gemeinsam bessere Projekte umsetzen.

Wir helfen deinem Unternehmen.

Du stehst vor einer großen IT-Herausforderung? Wir sorgen für eine maßgeschneiderte Unterstützung. Informiere dich jetzt.

Hilf uns, noch besser zu werden.

Wir sind immer auf der Suche nach neuen Talenten. Auch für dich ist die passende Stelle dabei.