HTML Report Hyperlink not working

0

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?

parthbhagat's picture
Joined: Aug 22 2010 - 11:26pm
Last seen: 3 months 4 days ago

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>

 

lokeshjaiswal - 1 year 8 months ago

1 Answer:

1

You'll need to set Link Type to "Reference"

hozawa's picture
52422
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 6 days ago

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?

parthbhagat - 3 years 2 months ago

Hi, how can you pass parameter if you use reference as link type?

alexasr1991 - 5 months 3 weeks ago

Hi Alessandro, please ask a new question here: https://community.jaspersoft.com/answers

kkumlien - 5 months 3 weeks ago
Feedback
randomness