Jump to content

When viewing a report in JasperStudio I do not get an error, but when I view the same report in my web app I get an error evaluating expression. What could be the issue?


armercer

Recommended Posts

In the .jrxml file, I have a textField with an expression :

<textField>
                <reportElement x="580" y="40" width="222" height="20" uuid="d17eb83e-cdea-42e4-9ed2-dab90731866d"/>
                <textFieldExpression><![CDATA[iF($F{total_items} != 0,$F{total_items_detected} / $F{total_items},0)]]></textFieldExpression>
            </textField>

When I run the report in JasperStudio it previews but when I run the same report in my web app, I get this error:

Error evaluating expression :
    Source text : IF($F{total_items} != 0,$F{total_items_detected} / $F{total_items},0)

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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