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

incompatible operand issue from an expression of TextField


Recommended Posts

Hi All,

I have an issue regarding Text Field expression.

1. by using SUM(Y) in database, getting integer value for SUM_Y Field in iReport. ( I have made a Field in Fields list)

2. Here I need to display Integer value coming from database in my Report By using following expression : [ $F{SUM_Y} != null ? $F{SUM_Y} : ""]

But i'm getting below the compilation error.

Incompatible conditional operand types Integer and int
                value = (java.lang.Integer)(((java.lang.Integer)field_SUM_Y.getValue()) == null ? ((java.lang.Integer)field_SUM_Y.getValue()) : 0); //$JR_EXPR_ID=43$
                                           <----------------------------------------------------------------------------------------------------->

Please help on above the issue.

Thanks in Advance.

Link to comment
Share on other sites

  • Replies 2
  • 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...