Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

I am using print when expression in my report.............

the static text should not be shown.. when that condition occurs.........

<printWhenExpression><![CDATA[(($F{participantName}!=null)?$V{CommitteeGroup_COUNT}:0)!=0]]></printWhenExpression>

where particpant name is a field

<field name="participantName" class="java.lang.String">

<fieldDescription><![CDATA[participantName]]></fieldDescription>

</field>

 

its working fine in ireports.............. but not when i am manually compiling the .jrxml file......... i am getting the following exceptionnet.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

 

 

1. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)!=0); //$JR_EXPR_ID=13$

<---------------------------------------------------------------------------------------------------------------------------->

2. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)!=0); //$JR_EXPR_ID=14$

<---------------------------------------------------------------------------------------------------------------------------->

3. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getValue()):0)==0); //$JR_EXPR_ID=25$

<---------------------------------------------------------------------------------------------------------------------------->

4. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)!=0); //$JR_EXPR_ID=13$

<---------------------------------------------------------------------------------------------------------------------------------->

5. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)!=0); //$JR_EXPR_ID=14$

<---------------------------------------------------------------------------------------------------------------------------------->

6. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getOldValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getOldValue()):0)==0); //$JR_EXPR_ID=25$

<---------------------------------------------------------------------------------------------------------------------------------->

7. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)!=0); //$JR_EXPR_ID=13$

<------------------------------------------------------------------------------------------------------------------------------------->

8. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)!=0); //$JR_EXPR_ID=14$

<------------------------------------------------------------------------------------------------------------------------------------->

9. Incompatible conditional operand types Integer and int

value = (java.lang.Boolean)(((((java.lang.String)field_participantName.getValue())!=null)?((java.lang.Integer)variable_CommitteeGroup_COUNT.getEstimatedValue()):0)==0); //$JR_EXPR_ID=25$

 

Link to comment
Share on other sites

  • 3 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 9 months later...

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