previous/next group - referring to row by position [message #499064] |
Thu, 19 November 2009 11:57  |
Eclipse User |
|
|
|
Even after searching these forums for 2 hours I can't see any way to have next/previous links that can iterate through groups in a table
Background:
I've got a table with a grouping on a column in a flat data source (CSV). In the grouping header I have a graph for that group.
I only display one group in the report by having a filter set up which only displays the group that matches a parameter ("filteredGroup").
What I'd like to do:
I'd like a previous and next link that allows the user to see graphs for the previous/next group.
Firstly, I'm not sure how to get the group index (row.__rowNum doesn't seem to work for group headers.)
Secondly, once I have the index of the visible group, I'm not sure how to refer to the previous row. In fact, I can't even see how to get all values in a column (e.g. all values contained in row["key"])
e.g. if the groups are A, B, C, D and B is shown (because the report had parameter http://www/report.rptdesign?filteredGroup=B) then the prev link would have http://www/report?filteredGroup=A and the next link would have http://www/report?filteredGroup=C.
So, any ideas out there for what I want?
[Updated on: Thu, 19 November 2009 12:23] by Moderator
|
|
|
|
|
|
Re: previous/next group - referring to row by position [message #499654 is a reply to message #499275] |
Mon, 23 November 2009 10:45  |
Eclipse User |
|
|
|
Thanks a lot, hidden tables works!
Why does BIRT require such hackery? Hidden tables just to enumerate values across a column, global vars just to keep track of the current row number (for grouped rows).
Surely the API should be beefed up a bit to make it easier to do this sort of stuff?
--
all the best
Ash
|
|
|
Powered by
FUDForum. Page generated in 0.09381 seconds