Categories > TinyButStrong general >

aggregate put [ in second loop

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Martin
Date: 2007-10-03
Time: 08:39

aggregate put [ in second loop

Hi !!!

All works with the code below, but when i have more than 2 rows in block named "blkSocio" appear a "[" from the second row at the end of rows outside the table "detail", but never in the first row.

         -- The problem is in this piece of code --
                 <tr>
                   <td colspan="5">
                    <table id="detail" class="tabla">
                      <tr>
                        <th width="20%" align="center">Fecha</th>
                        <th width="50%">Concepto</th>
                        <th width="30%" align="right">Importe</th>
                      </tr>
[blkDeuda;block=begin;aggregate=importe_08:sum;p1=[blkSocio.socio]]
                      <tr bgcolor="[blkDeuda.$;ope=mod:2;if [val]='0';then '#f5f5f5'; else '#FFFFFF';]">
                        <td align="center">[blkDeuda.fecha_08;frm='[blkDeuda.formato]']</td>
                        <td>[blkDeuda.concepto_08]</td>
                        <td align="right">[blkDeuda.importe_08;frm='0.00']</td>
                      </tr>
                      [blkDeuda;block=end;]
                      <tr bgcolor="#f5f5f5">
                        <td colspan="3" align="right"><strong>[blkDeuda.importe_08:sum;frm='0.00']</strong></td>
                      </tr>
                    </table>
                  </td>
                </tr>

I try with [blkDeuda;block=start;][blkDeuda;block=end;] and with
the classic [blkDeuda;block=tr] but i cant find what im doing wrong.

Thanks in advance
By: Skrol29
Date: 2007-10-09
Time: 13:25

Re: aggregate put [ in second loop

Hi Martin,

This is a known bug.
It will be fixed in the next released.

The workaround is there:
http://www.tinybutstrong.com/forum.php?msg_id=7804