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

Subtracting two fields


robertdseals

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

If it helps any, here's some of the XML

<reportElement x="100" y="0" width="100" height="20"/>

<textElement/>

<textFieldExpression><![CDATA[$F{CAD}]]></textFieldExpression>

</textField>

<textField>

<reportElement x="200" y="0" width="100" height="20"/>

<textElement/>

<textFieldExpression><![CDATA[$V{new java.Math.BigDecimal($F{CAD}.doubleValue() - $F{CMD}.doubleValue())}]]></textFieldExpression>

</textField>

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