Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4387 Näkymät

Hi everybody,

I have a problem with a reparIn. I would like to create a table, two columns, with one field on the left and an repeatIn of another field on the right. The problem is with my repeatIn, my field on the left is printed as many times as the repatIn (not just one time)

My code:

  <blockTable colWidths="269.0,260.0" style="Table2">
  <tr>
    <td>
      <para style="P5">[[ o.description_Quotation or removeParentNode('para') ]]</para>
    </td>
    <td> 
       <para style="terp_default_9">[[ repeatIn(o.order_line,'order_line') ]]</para>     
      <image alignment="CENTER" height="60.0" width="60.0" >  [[ order_line.product_id.image  or removeParentNode('para')]]</image>
    </td>
  </tr>
</blockTable>

Someone know why?

Thank you a lot

Selverine

Avatar
Hylkää
Paras vastaus

Dear Selverine,

you can try:

<blockTable colWidths="269.0,260.0" style="Table2">
  <tr>
    <td>

<section>

<para style="P5">[[ o.description_Quotation or removeParentNode('para') ]]</para>

</section>

</td> <td>
<section> <para style="terp_default_9">[[ repeatIn(o.order_line,'order_line') ]]</para> </section>
      <image alignment="CENTER" height="60.0" width="60.0" >  [[ order_line.product_id.image  or removeParentNode('para')]]</image>
    </td>
  </tr>
</blockTable>
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
maalisk. 15
6897
1
maalisk. 15
5663
4
jouluk. 23
11823
8
toukok. 18
8448
1
maalisk. 18
4481