Jump to content
Changes to the Jaspersoft community edition download ×

URL Link Question


ktrinad

Recommended Posts

By: brian - brian_maguire1

URL Link Question

2003-04-23 08:05

Got a quick question I believe. Hope you can help.

 

 

Little background:

 

Using latest greatest Jasper, IReport

 

 

Problem: Trying to make a link from one report to the next however it does not seem to work. We got it to work in one case (below) but not the other( the XML is listed below). Below is the xml of working link and not working link and attached is the html output. The link does not show up.

 

 

 

The working one:

 

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="Reference" > <reportElement

 

mode="Opaque"

 

x="1"

 

y="27"

 

width="62"

 

height="45"

 

forecolor="#FFFFFF"

 

backcolor="#000000"

 

positionType="Float"

 

isPrintRepeatedValues="true"

 

isRemoveLineWhenBlank="false"

 

isPrintInFirstWholeBand="false"

 

isPrintWhenDetailOverflows="true">

 

<printWhenExpression><![CDATA[

 

new Boolean($P{reportLevel}.toString().equals("Student"))

 

]]></printWhenExpression>

 

</reportElement>

 

<textFieldExpression class="java.lang.String"><![CDATA["(click here to view)"]]></textFieldExpression>

 

<hyperlinkReferenceExpression><![CDATA["/access/do/testPreview?testFormID="+$F{subtest_id}]]></hyperlinkReferenceExpression>

 

</textField>

 

++++++++++++++++++++

 

doesnÂ’t work one:

 

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Group" evaluationGroup="studentGroup" hyperlinkType="Reference" > <reportElement

 

mode="Transparent"

 

x="12"

 

y="1"

 

width="132"

 

height="20"

 

forecolor="#000000"

 

backcolor="#FFFFFF"

 

positionType="Float"

 

isPrintRepeatedValues="false"

 

isRemoveLineWhenBlank="false"

 

isPrintInFirstWholeBand="false"

 

isPrintWhenDetailOverflows="false"/>

 

<textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">

 

<font fontName="" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="true" pdfEncoding ="Cp1250" isStrikeThrough="false" />

 

</textElement>

 

<textFieldExpression class="java.lang.String"><![CDATA[$F{user_fullname}+" ( "+$F{user_id}+ " ):"]]></textFieldExpression>

 

<hyperlinkReferenceExpression><![CDATA["/access/do/indvReport?reportLevel=Student&reportName=individualTeacherReport&profileSessionID=+$F{session_id}+"&Dispatch=Request]]></hyperlinkReferenceExpression>

 

</textField>

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: URL Link Question

2003-04-23 08:23

Strange. You can really open a report using the expression link resulted ? Try to insert the same expression in a textfield, then copy and paste....

 

Giulio

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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