I am using TotalTableDecorator for decorating my <display:table>
I am using group="1" to group by the first column and total="true" for
taking Sum on few columns.
Display Tag inserts SubTotal (for each group in column one ) and Total Row
(overall total)
Now I want to color my SubTotal row and Total row in different color. I
also want to
customize my Sub total and total headings. Also i want the Subtotal and
Total Values to be aligned
right wheres as headngs to be aligned left.
Also i want to format the Total values with a comma for values in Thousand
and Millions (like 1863 as 1,863)
My Current code is like this
<display:table name="monthlyReport" decorator="totals" defaultsort="1"
Class="bgbeige" style="width:500 px;">
<display:column property="system" title="External System"
headerClass="bgbeige" group="1" style="text-align:left;"/>
<display:column property="year" title="Year"
headerClass="bgbeige"
style="text-align:right;"/>
<display:column property="month" title="Month"
headerClass="bgbeige"
style="text-align:right;"/>
<display:column property="manualBICount" title="Manual"
headerClass="bgbeige" total="true" format="{0,number,0}"
style="text-align:right;"/>
<display:column property="automaticBICount" title="Automatic"
headerClass="bgbeige" total="true" format="{0,number,0}"
style="text-align:right;"/>
<display:column property="totalBICount" title="Grand Total"
headerClass="bgbeige" total="true" format="{0,number,0}"
style="text-align:right; "/>
</display:table>
Thanks
Faisal
--
View this message in context:
http://www.nabble.com/Using-TotalTableDecorator-for-applying-styles-on-Total-and-SubTotal-tf3775953.html#a10677089
Sent from the DisplayTag - Dev mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel