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

mlg

Members
  • Posts

    5
  • Joined

  • Last visited

mlg's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I haven't been using iReports very long (like a week) but is it because in your "detail" section, the fields aren't inside the frame?
  2. Below are my two styles, one is for a background (opaque) and one is for text (transparent) After those is my frame. Code: <style name="Background_Style"> <conditionalStyle> <conditionExpression><![CDATA[!$F{Registration_Status}.toUpperCase().equals("A")]]></conditionExpression> <style mode="Opaque" backcolor="#FF0000"/> </conditionalStyle> </style> <style name="Font_Style"> <conditionalStyle> <conditionExpression><![CDATA[!$F{Registration_Status}.toUpperCase().equals("A")]]></conditionExpression> <style mode="Transparent" forecolor="#FF0000" backcolor="#EEEEEE"/> </conditionalStyle> </style><frame> <reportElement style="Background_Style" x="554" y="20" width="66" height="20"/> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="66" height="20"/> <box leftPadding="2"/> <textElement> <font size="14" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{Registration_Status}]]></textFieldExpression> </textField> </frame>
  3. Thank you. I think I have it figured out. Rather than changing the background of the data field, I put a frame behind it and change the background color if it.
  4. even if I select opaque the box still doesn't change color.
  5. Using iReports 3.7.5 and trying to give a database field element a different background depending on it's value Been reading up on it, but can't get it to work. This is what it's using for the style and cell right now Code:<style name="Background_Style"> <conditionalStyle> <conditionExpression><![CDATA[new Boolean($F{Class_Code}.toUpperCase().equals("PC"))]]></conditionExpression> <style mode="Transparent" backcolor="#FF0000"/> </conditionalStyle></style><textField isStretchWithOverflow="true"> <reportElement style="Background_Style" mode="Transparent" x="432" y="20" width="86" height="20" backcolor="#FFFFFF"/> <textElement markup="none"> <font size="14" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{Class_Code}]]></textFieldExpression></textField>
×
×
  • Create New...