Wednesday, April 15, 2009

Form Reports with Multi-Line Smart Sections

I found some odd behavior when creating a form report displaying multi-line smart section rows. I created the table but only the first cell of each row was getting populated with data, none of the additional columns displayed any data.

Here is an example of the html code I used in the table:

<tbody>
    <tr>
      <td>Work Task ID</td>
      <td>Task Name</td>
    </tr>
    <tr>
      <td>%%triWorkTasks_triIdTX%%</td>
      <td>%%triWorkTasks_triNameTX%%</td>
    </tr>
</tbody>

The workaround is to add a space after the for each cell containing the %% tags, so it looks like this: . After doing that the data displayed as expected.

Here is the fixed version of my example:

<tbody>
    <tr>
      <td>Work Task ID</td>
      <td>Task Name</td>
    </tr>
    <tr>
      <td >%%triWorkTasks_triIdTX%%</td>
      <td >%%triWorkTasks_triNameTX%%</td>
    </tr>
</tbody>

No comments: