Categories > TinyButStrong general >

Duplicated Data on Merge with Alternate Table Rows

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

Duplicated Data on Merge with Alternate Table Rows

There's probably a simple explanation, but I seem to be overlooking it at the moment. I'm trying to get alternating row colors on my table, but what I end up with is duplicate rows when the merge takes place.

<table id="myTable" border="1" class="ui-widget">
<thead class="ui-widget-header">
    <tr>
        <th></th>
        <th>ID</th>
        <th>Title</th>
        <th>Last Played</th>
    </tr>
</thead>
<tbody class="ui-widget-content">
    <tr style="background-color: #add8e6;">
        <td>[titleblock.#]</td>
        <td>[titleblock.ID]</td>
        <td>[titleblock.title; block=tr; p1=[songblock.ID]]</td>
        <td>[titleblock.date_played]</td>
    </tr>
    <tr style="background-color: #e5e5e5;">
        <td>[titleblock.#]</td>
        <td>[titleblock.ID]</td>
        <td>[titleblock.title; block=tr; p1=[songblock.ID]]</td>
        <td>[titleblock.date_played]</td>
    </tr>
</tbody>
</table>
By: Skrol29
Date: 2012-03-08
Time: 18:05

Re: Duplicated Data on Merge with Alternate Table Rows

Hi,

Delete parameter "p1=[songblock.ID]" from the second section. But let it as is in the first one.

By: Anthony
Date: 2012-03-08
Time: 18:07

Re: Duplicated Data on Merge with Alternate Table Rows

I knew it had to be simple. Thanks!