Jump to content
Changes to the Jaspersoft community edition download ×

HTML Report Hyperlink not working


parthbhagat
Go to solution Solved by hozawa,

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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?

Link to comment
Share on other sites

  • 1 year later...

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>

 

Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...