Holger Knublauch

DDR tables now suppressed if empty

<div>
<ui:call ui:template="{= ?template }" arg:report="{= ?report }">
<ui:if ui:condition="{= spr:rowCount(?rs) &gt; 0 }">
<div>
<hr />
<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/ddr-tables&gt;">
<h2>{= ui:label(?template) }</h2>
......@@ -17,7 +19,6 @@
</ui:forEach>
</tr>
</ui:setContext>
<ui:call ui:template="{= ?template }" arg:report="{= ?report }">
<ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }">
<tr class="ddrTR">
<ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }">
......@@ -25,7 +26,8 @@
</ui:forEach>
</tr>
</ui:forEach>
</ui:call>
</table>
<br />
</div>
\ No newline at end of file
</div>
</ui:if>
</ui:call>
\ No newline at end of file
......