WDRTable.uispin.html 1.03 KB
<div>
	<hr />
	<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
		<h2>{= ui:label(?template) }</h2>
	</ui:setContext>
	<table class="ddrTable">
		<ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/drilling-tables&gt;">
			<tr class="ddrTR">
				<ui:forEach ui:resultSet="{# 
						SELECT ?header
						WHERE {
							?template rhspin:tableHeaders ?list .
							?list &lt;http://jena.hpl.hp.com/ARQ/list#member&gt; ?header .
						}
					}">
					<th class="ddrTH">{= ?header }</th>
				</ui:forEach>
			</tr>
		</ui:setContext>
		<ui:call ui:template="{= ?template }" arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }">
			<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) } }">
						<td class="ddrTD">{= ui:label(?cell) }</td>
					</ui:forEach>
				</tr>
			</ui:forEach>
		</ui:call>
	</table>
	<br />
</div>