bsreekanthreddy Posted August 30, 2010 Share Posted August 30, 2010 Hello,I would like to know how to alternate row color when the previous row was hidden as "Remove Line When Blank" option was selected. Right now, I am using the below expresion for "Print When Expression"new Boolean(($V{REPORT_COUNT}.intValue() % 2) == 0)This works great but the only issue is when the previous row was hidden you will see two rows repeating the same color. Please let me know if anyone has come across this issue and found a solution. Your help is greatly appreciated.Thanks. Link to comment Share on other sites More sharing options...
thangalin Posted September 10, 2010 Share Posted September 10, 2010 Ran into this a few weeks ago. If you can encode the Print When Expression condition in the SQL statement so that the offending rows are not returned, that would work. You might be able to add a custom incrementer class and use its value instead of $V{REPORT_COUNT}. Link to comment Share on other sites More sharing options...
jvway Posted September 10, 2010 Share Posted September 10, 2010 Not sure completely in this circumstance but what I found worked was putting the fields in a frame and coloring the frame. I think that when there was no data it didn't print the frame either. But this made the coloring work in html views also. 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