Categories > OpenTBS with ODS >

dynamic table in ods

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: jef
Date: 2012-02-03
Time: 10:17

dynamic table in ods

i managed to get a dynamic table in ods, but i can't seem to get rid of the first column (b3;block=table), which i don't need ( it contains a numbering, in most examples ).
My first row contains the headers for the report, from the second row on, the data will be listed.
                                    [cell1.val;block=table:table-cell]       
[b3;block=table:table-row]    [b3.[cell2.val;block=table:table-cell]]
By: Skrol29
Date: 2012-02-03
Time: 23:55

Re: dynamic table in ods

Hi Jef,

Try this:
[cell1.val;block=table:table-cell]
[b3.[cell2.val;block=table:table-cell];block=table:table-row]
By: jef
Date: 2012-02-06
Time: 10:24

Re: dynamic table in ods

this works perfectly! where can i find some explanation of this kind of stuff ?
By: Skrol29
Date: 2012-02-06
Time: 21:53

Re: dynamic table in ods

Hi,

It it the tip of dynamic column which is given with the Example set (see in line exampels).

First you merge block "cell1" and "cell2" in shot. Both of them extents the columns.
"cell1" extends the columns of title, "cell2" extends the columns of value. "cell2" also give the colmun names for block "b2".

After merging "cell1" and "cell2", the template looks like this:
col1                            col2                             col3
[b3.col1;block=table:table-row] [b3.col2;block=table:table-row]  [b3.col3;block=table:table-row]

Now block "b3" can be merged normally.
Note that TBS doesn't need to have "block=table:table-row" repated. Only the first one is taken in account.
Nevertheless, it doesn't disturb the merging.