Jump to content
We've recently updated our Privacy Statement, available here ×

isPrintRepeatedValues="false" repeats values


Recommended Posts

By: Dave Cherkassky - dcherk

isPrintRepeatedValues="false" repeats values

2006-07-17 18:49

Greetings...

 

I created the textField below:

 

<textField isStretchWithOverflow="true" pattern="¤ #,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="283"

y="0"

width="55"

height="14"

forecolor="#000000"

backcolor="#FFFFFF"

key="deductible"

positionType="Float"

isPrintRepeatedValues="false"

printWhenGroupChanges="Coverage"

isPrintWhenDetailOverflows="true">

<printWhenExpression><![CDATA[new Boolean( $F{application_type}.equals( "group" ) )]]></printWhenExpression>

</reportElement>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{deductible} == null ? "NONE" : new DecimalFormat( "$ #####" ).format( $F{deductible} )]]></textFieldExpression>

</textField>

 

 

The key items to note are:

- isPrintRepeatedValues="false"

- <textFieldExpression class="java.lang.String"><![CDATA[$F{deductible} == null ? "NONE" : new DecimalFormat( "$ #####" ).format( $F{deductible} )]]></textFieldExpression>

 

Even though, printing repeated values is false, the text "NONE" is repeated...

 

I am using JasperReports 1.2.4, and the snippet above was created by iReport 1.2.4. Any suggestions?

 

Thanks in advance,

Dave Cherkassky

VP of Software Development

DJiNN Software Inc

 

 

 

By: Lucian Chirita - lucianc

RE: isPrintRepeatedValues="false" repeats val

2006-07-19 08:25

Follow-up here

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=37&catid=8

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