Jaspersoft Community 'Read-Only' as of July 8, 2022
Transition to New TIBCO Community Just Weeks Away
You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.
Hello there,
I am having Jasper Report library 4.5.1. Recently we planned to upgrade library to latest version of Jasper Report API i.e. 6.3.0.
During migration, I noticed that HTML Hyperlink (which was displayed and worked properly on 4.5.1) is not getting displayed. I am trying to open another jasper report on hyperlink click operation.
From Jasper Report Studio, have set parameters:
Hyperlink -> Link Target = Self
Hyperlink -> Lnk Type = ReportExecution
Hyperlink -> Parameters -> _report = "/report/reports/ChildReport.jrxml" (provided that Jasper Studio file structure having all .jrxml files under 'report' directory)
When I look at preview of thisreport, I see nothing on text field on which Hyperlink is set.
To verify whether it is working or not at all from jasper studio 6.3, have set below parameters:
Hyperlink -> Link Target = Self
Hyperlink -> Lnk Type = RemoteAnchor
Hyperlink -> Hyperlink Anchor Expression = "http://www.google.com/"
But still no link on text field.
Is there anything I am doing wrong here? Am I missing any configuration part?
1 Answer:
You'll need to set Link Type to "Reference"
Thanks hozawa. Now able to see www.google.com link. But it is not looks like link. It looks like normal text, until we hover mouse on the link.
Anyways, thats a different discussion. Have used www.google.com to check that whether hyperlink actually works or not or I am having some config issue.
Prime issue with the report is Link Type = ReportExecution. How can I perform drilldown to another report?
Hi, how can you pass parameter if you use reference as link type?
Hi Alessandro, please ask a new question here: https://community.jaspersoft.com/answers
I have created the Japsersoft dashbaord and added Hyperlink in text field. however when I published the report hyperlink did not work.
<pageHeader>
<band height="50">
<textField hyperlinkType="ReportExecution" hyperlinkTarget="Blank">
<reportElement x="20" y="20" width="110" height="30" uuid="2cbdf20a-8462-4f7f-bf35-a1ce7873c025"/>
<textElement>
<font isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA["Hyperlink"]]></textFieldExpression>
<hyperlinkParameter name="_report">
<hyperlinkParameterExpression><![CDATA["/Reports/CoreSystems/dashboardreport/2018/Blank_A4_Landscape"]]></hyperlinkParameterExpression>
</hyperlinkParameter>
</textField>
<textField pattern="MMMMM dd, yyyy">
<reportElement x="490" y="20" width="100" height="20" uuid="6e3ac26b-011f-42d5-b305-5420035b9868"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</band>
</pageHeader>