Holger Knublauch

DDR tables now suppressed if empty

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