Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.8
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Modify jsl to include a "Total" row at bottom of table. See attached image. My code isn't 100%, but as you see it will calculate values correct even if there are some "-" rows. For rows like "xx %", NaN will show up.
Jsl code is quite straight forward (could propably be re-written; my xpath knowledge isn't that good):
<tr>
<td><b>Total</b></td>
<x:forEach var="aggregatorName" select="project[1]/aggregator/@name">
<td>
<b>
<x:expr select="sum(//aggregator[@name='${aggregatorName.value}'][not(text()='-')][text()])"/>
</b>
</td>
</x:forEach>
</tr>
Or do you want a scm diff on this?
Applied thanks.