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)
Alternating Highlights on Group Footer >> Breaks Hyperlinks?
keyboard99
Hi All,
I attempted to search for my issue, but found no prior threads.
I have a somewhat complicated BIRT report in 2.2.2 that uses an external data source for displaying information. I am using the RCP Designer to create it.
I want to be able to convey my intention well, so I will provide an example of the way I want to show my data.
For example, I have a data set that has Mike, Mary, Tom, Doug. I am keeping track of how many times they do the following per hour: Cough, Sneeze, Burp. I want a report per day that describes what these people did. Each person will have a dedicated page on the report, and there will be a summary page for what they all did for the day.
This information is shown:
1) As a summary on the first page of the report (let's call this the summary page)
2) As hourly details on the subsequent pages of the report. (let's call this the hourly page)
On the summary page, I am using a table to aggregate hourly data into a group footer item that totals each column. So, I have a group footer for each person with columns showing the totals of what they did. The very first cell of the group footer is supposed to become a hyperlink to the page of each person.
I understand a limitation to BIRT is that you cannot "easily" have group footer rows perform conditional highlighting (every other row). So, I was able to find that I can use the following script with the OnCreate event of the group footer along with a highlighting condition on each cell to do this.
OnCreate of Group Footer: if (reportContext.getGlobalVariable("alt_grp") == false) reportContext.setGlobalVariable("alt_grp", true); else reportContext.setGlobalVariable("alt_grp", false);
Highlight of each Cell: reportContext.getGlobalVariable("alt_grp") Equal to true
The good news is that this works great. Every other row is highlighted as I configure.
The bad news is that, on rows where the highlighting occurs, I lose the hyperlink in the first cell. The text remains, but it is no longer a link to the respective page of the report.
Any advice?
I'll gladly do a quick photoshop of the report so you can get a better idea of what's happening. I guess my question is, can that script be modified in some way to allow highlighting and not remove my hyperlinks?
Thanks!
Find more posts tagged with
Comments
keyboard99
I have created an image of the report if it helps.<br />
<br />
<img src='
http://img35.imageshack.us/img35/941/birt.png'
alt='Posted Image' class='bbc_img' />
mwilliams
Hi keyboard99,
I've seen this problem before all the way up in 2.3.1. I do know that it works correctly in 2.3.2 and above if you have the ability to upgrade. I haven't found a way around the issue as of yet, nor have I been able to find a bug report for this that may have some sort of workaround in it. Upgrading may be the best solution if you can.