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

Conditional Suppression of Details Band


ian.waterman

Recommended Posts

Using i-Reports 3.7.4

Hope you can give me some pointers

I am trying to suppress detail band  when the datatype = Summary (ie print when datatype = Detail

I looked at existing report where we have two details bands, the second contains a notes field, this detail band is suppressed if notes field is null in Print When of the band properties

new Boolean ($F{StatusRecComments} != null )

I have tried

new Boolean ($F{DataType} != "Summary") – this suppresses nothing

new Boolean ($F{DataType} == "Detail") – this suppresses everything

Any suggestions

Thanks

Ian

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Found an answer to this

new Boolean ($F{DataType}.equalsIgnoreCase("1 Detail"))

However, I now need to have a list of conditions

1 Detail

2 Bank Charges

I have tried

new Boolean ($F{DataType}.equalsIgnoreCase("1 Detail"))

or

new Boolean ($F{DataType}.equalsIgnoreCase("2 Bank Charges"))

But I got a compile error

Syntax error on token "or" invalid AssignmentOperator

What is the correct syntax, or is there an IN operator

eg

new Boolean ($F{DataType}.in("1 Detail", "2 Bank Charges"))

Ian

 

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