Stefan.vanMarle Posted November 2, 2023 Share Posted November 2, 2023 We have upgraded from Jaspersoft Studio 6.20.0 to 6.20.5 and after that if you click on the line in the Table Of Contents it does not go to the chapter, but it stays on the table of contents place. How can it be solved? Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted November 7, 2023 Share Posted November 7, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Michael Bielkiewicz Posted November 7, 2023 Share Posted November 7, 2023 Is the issue contained within Studio itself (during Preview maybe?) or are you talking about after publishing the report to the Server (or executing it via library or whatever) when you see the issue? Can you provide the jrxml (at least the snippit with the table of contents where you see the issue? Link to comment Share on other sites More sharing options...
Stefan.vanMarle Posted November 8, 2023 Author Share Posted November 8, 2023 The issue is when we open the report in our software, so on a server. Below you can find the jrxml for the table of contents:<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.9.0.final using JasperReports Library version 6.9.0-cb8f9004be492ccc537180b49c026951f4220bf3 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="table_of_contents" pageWidth="595" pageHeight="842" columnWidth="445" leftMargin="75" rightMargin="75" topMargin="75" bottomMargin="50" resourceBundle="messages" uuid="f36f080a-5efe-48e8-870b-2ff32c285b1a"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="net.sf.jasperreports.print.create.bookmarks" value="true"/> <property name="com.jaspersoft.studio.unit." value="pixel"/> <template><![CDATA[$P{opal_style.jrtx} == null ? "opal_style.jrtx" : $P{opal_style.jrtx}]]></template> <parameter name="opal_style.jrtx" class="net.sf.jasperreports.engine.JRTemplate" isForPrompting="false"/> <parameter name="RESOURCES" class="java.util.ResourceBundle" isForPrompting="false"> <defaultValueExpression><![CDATA[$P{REPORT_RESOURCE_BUNDLE}]]></defaultValueExpression> </parameter> <parameter name="REPORT_TITLE" class="java.lang.String"> <parameterDescription><![CDATA[]]></parameterDescription> </parameter> <queryString language="SQL"> <![CDATA[]]> </queryString> <field name="label" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="pageIndex" class="java.lang.Integer"/> <field name="level" class="java.lang.Integer"/> <variable name="level2Index" class="java.lang.Integer"> <variableExpression><![CDATA[$F{level} == 1 ? 0 : ($F{level} == 2 ? ($V{level2Index} + 1) : $V{level2Index})]]></variableExpression> </variable> <background> <band splitType="Stretch"/> </background> <title> <band splitType="Stretch"/> </title> <pageHeader> <band height="15" splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <textField isStretchWithOverflow="true"> <reportElement key="" style="Title" isPrintRepeatedValues="false" x="0" y="0" width="445" height="15" isPrintWhenDetailOverflows="true" uuid="3b3c1150-4978-46cc-b832-e001eadabe3c"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textFieldExpression><![CDATA[$P{RESOURCES}.getString("zz_report.title.contents")]]></textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </band> </columnHeader> <detail> <band height="15" splitType="Stretch"> <printWhenExpression><![CDATA[$F{level} == 1 && $F{label}!=null]]></printWhenExpression> <textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="LocalAnchor"> <reportElement style="Normal" positionType="Float" x="0" y="0" width="300" height="15" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="0a880c04-482b-4c1e-8723-ca74f3e2e781"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textFieldExpression><![CDATA[$F{label}]]></textFieldExpression> <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="LocalAnchor"> <reportElement style="Normal" positionType="Float" x="415" y="0" width="30" height="15" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="af2e76ef-83f0-42e2-b114-ebe997055b92"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <printWhenExpression><![CDATA[$F{label}!=null]]></printWhenExpression> </reportElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER} + $F{pageIndex} + 2]]></textFieldExpression> <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression> </textField> </band> <band height="15"> <printWhenExpression><![CDATA[$F{level} == 2 && $F{label}!=null]]></printWhenExpression> <textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="LocalAnchor" bookmarkLevel="1"> <reportElement style="NormalItalic" positionType="Float" x="30" y="0" width="300" height="15" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="2f720a50-d29b-4fc6-98f5-aeae8f3de2da"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <printWhenExpression><![CDATA[$F{label}!=null]]></printWhenExpression> </reportElement> <textFieldExpression><![CDATA[$F{label}]]></textFieldExpression> <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="LocalAnchor"> <reportElement style="NormalItalic" positionType="Float" x="415" y="0" width="30" height="15" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="a602d02c-a342-4fd7-9838-45dd35bd0e87"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER} + $F{pageIndex} + 2]]></textFieldExpression> <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression> </textField> </band> <band height="15"> <printWhenExpression><![CDATA[$F{level} == 1]]></printWhenExpression> <textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="LocalAnchor"> <reportElement style="NormalBlank" x="-150" y="0" width="450" height="15" isPrintWhenDetailOverflows="true" uuid="2e919e96-dac1-49d0-976b-572c82e5cef4"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <printWhenExpression><![CDATA[$F{label}!=null]]></printWhenExpression> </reportElement> <textFieldExpression><![CDATA["Empty line"]]></textFieldExpression> <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression> </textField> </band> </detail> <columnFooter> <band splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </band> </columnFooter> <pageFooter> <band height="25" splitType="Stretch"> <textField> <reportElement key="" style="FooterBlue" x="0" y="10" width="100" height="15" isPrintWhenDetailOverflows="true" uuid="10c5713b-018f-4294-afbd-d37ed21b66bc"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textFieldExpression><![CDATA[$P{RESOURCES}.getString("scenarioReturn")]]></textFieldExpression> </textField> <textField> <reportElement key="" style="Footer" x="100" y="10" width="245" height="15" isPrintWhenDetailOverflows="true" uuid="e3fac7fa-d05c-448e-b2fd-26b5b63cb3a8"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="pixel"/> </reportElement> <textFieldExpression><![CDATA[$P{REPORT_TITLE}]]></textFieldExpression> </textField> <textField evaluationTime="Master"> <reportElement key="" style="Footer" x="345" y="10" width="100" height="15" uuid="becab897-8fab-4c27-819b-f58fdf0f091f"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$P{RESOURCES}.getString("page")+" " + $V{MASTER_CURRENT_PAGE} + " " + $P{RESOURCES}.getString("of") + " " + $V{MASTER_TOTAL_PAGES}]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </band> </summary></jasperReport> Link to comment Share on other sites More sharing options...
TomLukman Posted January 9 Share Posted January 9 I can confirm the same issue. Clicking on links stays on TOC page on version 6.20.6 as well. However, if I open the bookmarks tab in PDF viewer (Chrome PDF viewer, Firefox viewer, Adobe Reader) and click on any of the bookmarks, page switching works as intended. I'm attaching a sample PDF in case it can help. b6055ad5-e9cc-4c72-a15c-d330f1503c5e.pdf Link to comment Share on other sites More sharing options...
Teodor Danciu - Staff Posted January 16 Share Posted January 16 What is the export format presenting the problem? Is the report viewed in HTML format or PDF format? Link to comment Share on other sites More sharing options...
TomLukman Posted January 22 Share Posted January 22 It's in PDF format (I uploaded an example PDF you could examine). Problem exists in in-browser PDF viewers (Firefox, Chrome) and in Adobe Reader. Between working and not working version you guys switched from iText to OpenPDF - perhaps there's the problem. Link to comment Share on other sites More sharing options...
Teodor Danciu - Staff Posted January 26 Share Posted January 26 Indeed, this is a bug we introduced in 6.20.5. Will let you know when fixed. Link to comment Share on other sites More sharing options...
Teodor Danciu - Staff Posted January 26 Share Posted January 26 Fixed at https://github.com/TIBCOSoftware/jasperreports/commit/2cc50475bcc0d777eb18299d266a0596ffc49b84 1 Link to comment Share on other sites More sharing options...
TomLukman Posted January 29 Share Posted January 29 Great job. Looking forward to the next bugfix release... Link to comment Share on other sites More sharing options...
Teodor Danciu - Staff Posted February 14 Share Posted February 14 JRL CE 6.21.2 has been released. 1 Link to comment Share on other sites More sharing options...
tomislav.lukman Posted February 19 Share Posted February 19 I have updated my project to 6.21.2 and can confirm table of contents is working as intended. Thank you again! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now