Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
color change on page change
Vineet Joshi
Hi
I am following a pattern of changing the background color of every 3rd row ,it is working fine but i want this to start from first line on page change (i m taking pdf output). i.e every time the page changes the 1st row should have different background color irrespective of where it ended on the last page .
Thanks
Vineet
Find more posts tagged with
Comments
johnw
You will need to reset a counter in the onPageBreak event. There are some other things you can try using HTML CSS styles and do this clientside which will work also.
Vineet Joshi
Thanks john for replying
can u pls explain me in detail..
Regards
Vineet
johnw
You can set an Highlight expression to do the color alternating. If you select the root page or table, there is an onPageBreak event. Reset your counter in there.
Otherwise, you can do some javascript trickery using a Text element set to HTML. BIRT reports usually just render out to HTML, so you can use the same DOM manipulations and style changes you do in HTML, as long as you can find the ID or traverse a DOM tree.