Congor Posted January 23, 2007 Share Posted January 23, 2007 Hi, ive got a subreport which has a repeating detail bandfor table data. Ive put a print when expressionto that detail band that says Code:(($F{Remark} != null && ${Remark} != ""«») ? Boolean.TRUE : Boolean.FALSE If there is no remark and it is not anempty string print this row of the table, right? But this doesnt work, the empty row got always printed. Does anybody know whats wrong? Or how to say:Dont print a table row if it is empty! Thank in advance Yves Link to comment Share on other sites More sharing options...
wegnerk Posted January 23, 2007 Share Posted January 23, 2007 First, there is an error in that code, you write ${Remark}, but it has to be a field or variable or parameter like the first one $F{Remark}. there exists another property, removeLineWhenBlank. If you use IReport, you can check that property. i didn't use subreports so far, so i don't know, if that works in that combination. Link to comment Share on other sites More sharing options...
Congor Posted January 23, 2007 Author Share Posted January 23, 2007 Thank you, i got it, I added a "Print When" expression forthe whole detail band: Code:(($F{Remark} == null || $F{Remark}.equals(""«») || $F{Remark}.equals("''"«»)) ? Boolean.FALSE : Boolean.TRUE) 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