title: Jasper Studio repeating block
body: <p>I've got a task, to create JasperReoirts report, which contains dynamic repeating block</p>
  
  <p>Something like this:</p>
  
  <pre><code>"You're cool guy because:
  Reason:$F{reason}
  Description: $F{desc}
  Grade: $F{grade}
  "
  </code></pre>
  
  <p>This block with reason\desc\grade can be repeated several times, depending on java Collection in DTO object. Which instrument should I use? I tried list, but it looks like for single field, not for block.</p>
  
  <p>For example:
  I've got DTO object for jasper report, which contain List of objects, List. This object in list has 3 String fields (reason, description, grade). So on report I want to see it like repeating block for each element from list </p>
  
  <pre><code>StopListReasons:
      Reason:  someReason1
      Description: someDescription1
      Grade: someGrade1
  
      Reason:  someReason2
      Description: someDescription2
      Grade: someGrade2
  
      Reason:  someReason3
      Description: someDescription3
      Grade: someGrade3 
  </code></pre>
  
  <p>I've tried to create table, which row contains 3 labels and 3 textfields, but on preview it's emtpty. Also I was looking for List element, but looks like it doesn't match my case.</p>
  
  <p>Maybe with code from jrxml this problem become more clear</p>
  
  <pre><code>    &lt;subDataset name="Dataset1" uuid="c5f7a5d1-6262-4003-a4fb-146ba8515c34"&gt;
      &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="adapter.xml"/&gt;
      &lt;queryString language="XPath"&gt;
          &lt;![CDATA[/report/stopListInfos/slInfo]]&gt;
      &lt;/queryString&gt;
      &lt;field name="stopListCode" class="java.lang.String"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[stopListCode]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name="stopListResult" class="java.lang.String"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[stopListResult]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name="clientType" class="java.lang.String"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[clientType]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
  &lt;/subDataset&gt;
  </code></pre>
  
  <p>And the table </p>
  
  <pre><code>            &lt;jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="AllSectionsNoDetail"&gt;
                  &lt;datasetRun subDataset="Dataset1" uuid="a5a0cf80-5aa6-415c-b31c-044bb856c70c"&gt;
                      &lt;dataSourceExpression&gt;&lt;![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/report/StopListInfos/slInfo")]]&gt;&lt;/dataSourceExpression&gt;
                  &lt;/datasetRun&gt;
                  &lt;jr:column width="66" uuid="aa9f5289-56ad-47df-93cf-8a81770ecd4c"&gt;
                      &lt;property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/&gt;
                      &lt;jr:detailCell style="Table_TD" height="110"&gt;
                          &lt;staticText&gt;
                              &lt;reportElement x="0" y="0" width="66" height="38" uuid="9fa05583-38e1-4cd2-b717-7f953ed29042"/&gt;
                              &lt;text&gt;&lt;![CDATA[1]]&gt;&lt;/text&gt;
                          &lt;/staticText&gt;
                          &lt;staticText&gt;
                              &lt;reportElement x="0" y="38" width="66" height="36" uuid="915e8324-e9b9-452d-983c-3e241f34eb46"/&gt;
                              &lt;text&gt;&lt;![CDATA[2]]&gt;&lt;/text&gt;
                          &lt;/staticText&gt;
                          &lt;staticText&gt;
                              &lt;reportElement x="0" y="74" width="66" height="36" uuid="fc7a9e65-2573-405d-bd3f-c519bd93d162"/&gt;
                              &lt;text&gt;&lt;![CDATA[3]]&gt;&lt;/text&gt;
                          &lt;/staticText&gt;
                      &lt;/jr:detailCell&gt;
                  &lt;/jr:column&gt;
                  &lt;jr:column width="134" uuid="82a313a6-2d55-418e-af19-a3ff9439bd6a"&gt;
                      &lt;property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/&gt;
                      &lt;jr:detailCell style="Table_TD" height="110"&gt;
                          &lt;textField&gt;
                              &lt;reportElement x="0" y="0" width="134" height="38" uuid="003483c6-9aa4-43fe-8d8c-2a5aef9ccc3f"/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{stopListCode}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                          &lt;textField&gt;
                              &lt;reportElement x="0" y="38" width="134" height="36" uuid="f3f7f9f6-7482-41a7-a473-0fa5d1a4bbed"/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{stopListResult}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                          &lt;textField&gt;
                              &lt;reportElement x="0" y="74" width="134" height="36" uuid="8ca9059f-7c71-44ff-96fd-7b490d4f7c0e"/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{clientType}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                      &lt;/jr:detailCell&gt;
                  &lt;/jr:column&gt;
              &lt;/jr:table&gt;
  </code></pre>