ian.waterman Posted April 2, 2014 Share Posted April 2, 2014 Using i-Reports 3.7.4Hope you can give me some pointersI am trying to suppress detail band when the datatype = Summary (ie print when datatype = DetailI 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 propertiesnew Boolean ($F{StatusRecComments} != null )I have triednew Boolean ($F{DataType} != "Summary") – this suppresses nothingnew Boolean ($F{DataType} == "Detail") – this suppresses everythingAny suggestionsThanksIan Link to comment Share on other sites More sharing options...
ian.waterman Posted April 8, 2014 Author Share Posted April 8, 2014 Found an answer to thisnew Boolean ($F{DataType}.equalsIgnoreCase("1 Detail"))However, I now need to have a list of conditions1 Detail2 Bank ChargesI have triednew Boolean ($F{DataType}.equalsIgnoreCase("1 Detail"))ornew Boolean ($F{DataType}.equalsIgnoreCase("2 Bank Charges"))But I got a compile errorSyntax error on token "or" invalid AssignmentOperatorWhat is the correct syntax, or is there an IN operatoregnew Boolean ($F{DataType}.in("1 Detail", "2 Bank Charges"))Ian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now