Categories > TinyButStrong general >

Can't do dynamic columns...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Adrian Madrid
Date: 2004-05-07
Time: 23:13

Can't do dynamic columns...

I'm writing a reports generator page and I'm having troubles with dynamic columns. I have an array of column titles and names that matches a query that returns my dynamic report. I can understand wyy I can do this:

      <tr>
        <th>[var.cols.1.name;noerr]</th>
      </tr>

but I can't do this:

      <tr valign="top">
        <td align="center">[trks.[var.cols.1.name;noerr];noerr]</td>
      </tr>

The second snippet produces no output. If I take the noerrs out I get a bunch of errors. If I want it to work I need to write:

      <tr valign="top">
        <td align="center">[trks.fname;noerr]</td>
      </tr>

but that defeats the purpose of dynamic columns.

Please, anybody knows how to do this?

Thanks in advance,

Adrian Madrid
By: RwD
Date: 2004-05-09
Time: 08:55

Re: Can't do dynamic columns...

I think you should try $TBS->MergeSpecial( 'var' ); before merging the block...

If that doesn't help, then show some PHP ode too, and give example input for the $cols variable please...