Skip to content

Instantly share code, notes, and snippets.

@zeromancer1972
Created November 4, 2014 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeromancer1972/5b406cc183e35f083664 to your computer and use it in GitHub Desktop.
Save zeromancer1972/5b406cc183e35f083664 to your computer and use it in GitHub Desktop.
Repeat table
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<!-- Bearbeitungsvermerke -->
<div class="row">
<div class="col-sm-10">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Zuarbeiten</h4>
</div>
<div class="panel-body">
<div class="box-inline">
<xp:table styleClass="table table-condensed table-hover">
<xp:tr>
<xp:repeat id="repeat1" rows="30"
indexVar="counter"
value="#{javascript:dsDBAS.getDocument().getResponses()}"
var="resp">
<xp:text escape="false">
<xp:this.rendered><![CDATA[#{javascript:(counter > 0) && (counter%3 == 0) }]]></xp:this.rendered>
<xp:this.value><![CDATA[#{javascript:
"</tr><tr>" }]]></xp:this.value>
</xp:text>
<xp:td>
<xp:link escape="true"
id="link4" target="_blank">
<xp:this.text><![CDATA[#{javascript:@Text(counter+1) +". "+resp.getItemValueString("Federführung_ZA")}]]></xp:this.text>
<xp:this.value><![CDATA[#{javascript:"document.xsp?action=openDocument&db="+sessionScope.get("currentDatabase")+"&view="+sessionScope.get("currentView")+"&documentId="+resp.getUniversalID()}]]></xp:this.value>
</xp:link>
</xp:td>
</xp:repeat>
</xp:tr>
</xp:table>
</div>
</div>
</div>
</div>
</div>
</xp:view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment