Categories > TinyButStrong general >

Problem to display nodata when records are empty

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: leeladharan
Date: 2005-04-26
Time: 09:08

Problem to display nodata when records are empty

Hi In This code When data in tbs variables are not null it's working fine but without the data in merged tbs variable it should print no data.How to handle this problem?

<table>
    <tr>
        <td>[blk.filename;block=table]</td>
         <td>[blk.summary]</td>
     </tr>
      <tr>
          <td><hr></td>
       </tr>
       <tr><td>[blk;block=table;nodata]There is no data</td></tr>
</table>
By: Skrol29
Date: 2005-04-26
Time: 09:31

Re: Problem to display nodata when records are empty

You 'nodata' section is not recognized because it is embedded into the normal section (set on <table>).
By: r00t
Date: 2005-04-27
Time: 16:34

Re: Problem to display nodata when records are empty

hi, how about setting the block to row(not table) as in below re-written code of yours...it works for me.

<table>
    <tr>
        <td>[blk.filename;block=tr]</td>
         <td>[blk.summary]</td>
     </tr>
      <tr>
          <td colspan="2"><hr></td>
       </tr>
       <tr><td colspan="2">[blk;block=tr;nodata]There is no data</td></tr>
</table>