|
If you replace this text in the modified dashboard.jsl section i posted, we will get '0' instead of 'NaN' for % columns: <x:expr select="sum(//aggregator[@name='${aggregatorName.value}'][not(text()='-') and not(contains(text(), '%'))][text()])"/> Thanks Morten. Actually, I prerfer NaN over 0 as it's not a number! That said, the best would really be "N/A" instead of NaN. I see your point. What we could do is to use the "old" <x:expr select..>" but store the select with a <x:set var="theTotal" select=..> and use <j:if..> to set theTotal to "N/A" if theTotal is "NaN". Here's the new N/A code: <tr> Sorry. THIS is more correct: <tr> |
|||||||||||||||||||||||||||||||||||||||||||||||
Applied thanks.