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

Print when expression problem


marianela

Recommended Posts

Hi everyone¡¡

 

Sorry to bother you with this (apparently silly) problem, but I hope some body can help me...

I have a report that has a group and in the detail band has a subreport. What I want at first (and already achieve) is to return the REPORT_COUNT from the subreport to master report.

Now that I have that variable in my master report, I want to use it in an expresion that let me not print the groupheader if there is no data return by the subreport.

I think that maybe this expreesion should work:

Code:
( $V{SubrptCount}.intValue()==0 ? Boolean.FALSE : Boolean.TRUE )

But I was wrong.. :(

Then I think that could be something like...

Code:
[code]new java.lang.Boolean($V{SubrptCount}.intValue()!=0)

But this didn't work either..

I don't understand what is the problem, but when I use any of those espression it oly works with some records..It's like some numbers (167,133,etc) are taking like 0 and some 0 are taking like others...:blink:

I know this sound a little confuse...but this is my problem...

Pleaseee I really need help..Anything will be appreciate

 

Marianela

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi cHaOs667,

 

Thanks a lot for your answer...

I tried use your idea but I obtain the following error...

Code:
it.businesslogic.ireport.ReportClassLoader@14f1544  net.sf.jasperreports.engine.JRException:Â
ErrorsÂwereÂencounteredÂwhenÂcompilingÂreportÂexpressionsÂclassÂfile: 1.ÂTheÂoperatorÂ!ÂisÂundefinedÂforÂtheÂargumentÂtype(s)Â
int valueÂ=Â(java.lang.Boolean)(newÂBoolean(!((java.lang.Integer)variable_SubrptCount.getValue()).intValue()Â==Â0)); ...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
3Âerrors ... ÂÂÂÂ

 

Any suggestion??? anyone???

Pleaseeeee, I really need help.

Thanks in advanced,

Regards,

Marianela

;)

Post edited by: marianela, at: 2007/03/28 16:17

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