Cannot cast boolean to Boolean

View: New views
2 Messages — Rating Filter:   Alert me  

Cannot cast boolean to Boolean

by Decibel3276 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello...

I'm trying to get alternating row styles and I'm using an example straight from the iReport Ultimate Guide but I'm running into boolean vs. Boolean issues.

I set up a style, then created a conditional style with the Java-style condition of:
     ($V{REPORT_COUNT}.intValue() % 2) == 0
...as documented on page 130 of the iReport Ultimate Guide

But, when previewing the report... I receive the "cannot cast from boolean to Boolean" error message.

Any ideas?


Re: Cannot cast boolean to Boolean

by Decibel3276 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Also tried:

new java.lang.Boolean(($V{REPORT_COUNT}.intValue() % 2) == 0)

and that will make it so that I don't get the boolean <> Boolean error but my alternate style isn't used.



Decibel3276 wrote:
Hello...

I'm trying to get alternating row styles and I'm using an example straight from the iReport Ultimate Guide but I'm running into boolean vs. Boolean issues.

I set up a style, then created a conditional style with the Java-style condition of:
     ($V{REPORT_COUNT}.intValue() % 2) == 0
...as documented on page 130 of the iReport Ultimate Guide

But, when previewing the report... I receive the "cannot cast from boolean to Boolean" error message.

Any ideas?