Hi all,

I've tried to use the TotalsTableDecorator in order to have totals displayed
in my tables.
It worked fine until I had a list with pagination.
It seems that it does not show totals on the last group and the final totals
on the last page.

I've found this JIRA issue that is not yet resolved :

http://jira.codehaus.org/browse/DISPL-476

The fix was only partial because if I change that row in the decorator, it
shows the final totals,
but they ane only calculated on the last page.
After going through the source for an hour or so, I think that maybe the
decorator is not the best approach
for the totals, because it is only called on the displayed rows.
So I've found that maybe it would be more appropriate to use a list helper
like
the SmartListHelper because it has a reference to the whole list and so it
may calculate the totals.

Or maybe a combination of both (have the decorator use the list helper in
order to get the "grand totals".
Also for a paginated list, the decorator could also use the list helper in
order to get the "grand totals" (here the programmer could put the totals
(sums) into the PaginatedTotaledList.

Finally my question is : has anybody made this work ? and if not, do you
have some pointers so I could maybe implement these totals. I will
contribute them into the library offcourse.

Cheers,
Narcis
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to