fnAddData to specific tbody?

fnAddData to specific tbody?

robertberlinrobertberlin Posts: 2Questions: 1Answers: 0

Maybe possible, maybe not, but answer if you can. I have a table that I'm trying to section off by using multiple tbody tags.

<table id="worklist-table" class="worklist">
    <thead>
        <tr>
            <th>Accession</th>
            <th>Facility</th>
            <th>Patient</th>
            <th>Priority</th>
            <th>Ordering Physician</th>
            <th>Procedure</th>
            <th>Diagnostic Code</th>
            <th>Time Requested</th>
            <th>Technician</th>
        </tr>
    </thead>
    <tbody id="table-Ordered" class="worklist-ordered">
        <tr>
            <td colspan="9">Ordered</td>
        </tr>
    </tbody>
    <tbody id="table-Dispatched" class="worklist-Dispatched">
        <tr>
            <td colspan="9">Dispatched</td>
        </tr>
    </tbody>
    <tbody id="table-Accepted" class="worklist-Accepted">
        <tr>
            <td colspan="9">Accepted</td>
        </tr>
    </tbody>
    <tbody id="table-Acquired" class="worklist-Acquired">
        <tr>
            <td colspan="9">Acquired</td>
        </tr>
    </tbody>
    <tbody id="table-Completed" class="worklist-Completed">
        <tr>
            <td colspan="9">Completed</td>
        </tr>
    </tbody>
    <tbody id="table-Results" class="worklist-Results">
        <tr>
            <td colspan="9">Results Sent</td>
        </tr>
    </tbody>
</table>

I want to be able to add data to a specific tbody based on a value of the array I'm passing. Thoughts?

Answers

  • allanallan Posts: 61,950Questions: 1Answers: 10,158 Site admin

    No - sorry. At this time DataTables supports only a single tbody element.

    Allan

This discussion has been closed.