Planet Open ERP

Planet Open Object

openerp: what's new online

Saturday, June 7, 2008

Reporting: RML - define a height for each row

I would like to speak about a very small patch than I committed on trunk. This patch helps to define the row's height for each column dynamically in the reporting system.

Before, If you want to define an height you have to specify a value in the rowHeights parameter of a blockTable.

<blockTable rowHeights="10,10">
<tr>
<td>Firstname</td>
<td>Lastname</td>
</tr>
<tr>
<td>Stephane</td>
<td>Wirtel</td>
</tr>
</blockTable>

So as you can see, the problem comes from the rowHeights parameter where you have to specify the height of each row.

Now with this patch you can define a height for each row.

<blockTable rowHeights="10">
<tr>
<td>Firstname</td>
<td>Lastname</td>
</tr>
<tr>
<td>Stephane</td>
<td>Wirtel</td>
</tr>
</blockTable>

No comments: