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

Krac

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by Krac

  1. Hello, Lucian and thanks for the reply :) My answer is: Yes, I do have a have a <box> specification for the <cellContents>. Following is the code: Code: <crosstabCell width="50" height="21"> <cellContents mode="Opaque" style="style_p"> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement style="style_p" mode="Transparent" x="39" y="1" width="11" height="15" key="textField"> <printWhenExpression><![CDATA[new Boolean($V{SET_INDEX_Nothing}.intValue() == $V{High_MB_IDX}.intValue())]]></printWhenExpression> </reportElement> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{SET_INDEX_Nothing}]]> </textFieldExpression> </textField> </cellContents> </crosstabCell> Problem is that everything from the defined style is processed, except the borders (neither the color, neither the thickness)! So the crosstab cell borders are not overridden by the defined style. What can be wrong? Thanks again, Razvan
  2. Hello, everyone! Below is a style defined for a cell of a crosstab: Code:<style name="style_p" isDefault="false" > <conditionalStyle> <conditionExpression><![CDATA[new Boolean($V{SET_INDEX_Nothing}.intValue() <= $V{High_MB_IDX}.intValue())]]></conditionExpression> <style name="style_p" isDefault="false" backcolor="#FF3300" border="1Point" borderColor="#FF3300" topBorder="1Point" topBorderColor="#FF3300" leftBorder="2Point" leftBorderColor="#FF3300" bottomBorder="1Point" bottomBorderColor="#FF3300" rightBorder="1Point" rightBorderColor="#FF3300" /> </conditionalStyle> </style> The problem is that everything works except the BORDER COLOR (borderColor="#FF3300"). That one is not overridden by the style. Is there any other syntax or possibility to use the border defined in a style for the cell's border? TIA, Razvan
  3. Hello, JasperReports-people! Is there any possibility to alternatively-color/fill the rows background for a crosstab, depending on the current row number in the crosstab? I would like a condition that resembles the following: new Boolean(($V{ROW_COUNT}.intValue()%3) == 0) where ROW_COUNT is the number of rows in the crosstab. Example: 1st row is RED, second is YELLOW, third is BLUE (Hai Romania!) or RED-WHITE-GREEN (Viva Italia!) and so on... Is there any BUILT-IN variable that automatically counts the rows for a crosstab? TIA, Razvan Post edited by: Krac, at: 2007/02/21 14:03 Post edited by: Krac, at: 2007/02/21 14:03
×
×
  • Create New...