Jump to content
Changes to the Jaspersoft community edition download ×

Hyperlinks in Frames


Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

The jasper jar jasperreports_1.3.0.jar

 

The problem manifests itself in the JasperViewer.

 

I am using conditional alternate row shading, implemented by using the following frame.

 

<frame>

<reportElement style="RowShader" stretchType="RelativeToBandHeight" mode="Opaque" x="2" y="-1" width="324" height="15"/>

<box padding="0" topBorder="1Point" topBorderColor="#C0C0C0" leftBorder="None" leftBorderColor="#FFFFFF" bottomBorder="1Point" bottomBorderColor="#C0C0C0" rightBorder="None" rightBorderColor="#FFFFFF"/>

<textField hyperlinkType="Reference" hyperlinkTarget="Blank">

<reportElement x="4" y="2" width="45" height="12" forecolor="#0000FF"/>

<textElement textAlignment="Right">

<font fontName="Courier New" isUnderline="true" pdfFontName="Courier"/>

</textElement>

<textFieldExpression class="java.lang.Integer"><![CDATA[$F{fltNumber}]]></textFieldExpression>

<hyperlinkReferenceExpression><![CDATA["FLIGHT:" + $F{fltNumber}]]></hyperlinkReferenceExpression>

</textField>

 

 

 

Without the Frame this link works fine. It is located in the detail band.

Link to comment
Share on other sites

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...