Hi All,
I have been using Displaytag on a project and am having a difficult time
with one particular issue.
We are producing reports with hierarchy of grouped columns and so we used
the MultilevelTotalTableDecorator as the base of our code to decorate.
I would like to display the value of a "deeper" group if a "higher order"
group has been reset.
Currently, the TableWriterTemplate writeTableBody(TableModel) compares the
current value for the column to the previous row's and if it isn't
different, it will call the tableDecorator.displayGroupedValue(struct.
bodyValue, groupingValue);. which passes in the value but not the column
number. The only solution I have been able to think of so far is to
re-write this to also send the column number along with the two other
params. Any ideas?
I'll try and describe the functionality I would like to implement in an
example. Please note, the below example is a very simplified example of what
I am asking for. If it is unclear, I can try again :).
Lets say we have the State column grouping value as 1 and City as 2
RAW DATA:
===================
= State = City =
===================
= CA = Elgin =
===================
= IL = Elgin =
===================
= IL = Elgin =
===================
= IL = Elgin =
===================
= IL = Elgin =
===================
Currently would display:
===================
= State = City =
===================
= CA = Elgin =
===================
= IL = =
===================
= = =
===================
= = =
===================
= = =
===================
Desired display:
===================
= State = City =
===================
= CA = Elgin =
===================
= IL = *Elgin* =
===================
= = =
===================
= = =
===================
= = =
===================
Thanks all in advance for your helpful responses!
Justin Nauman
Chicago, IL
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user