How to refresh table

How to refresh table

gman0104gman0104 Posts: 7Questions: 3Answers: 0

How can i simply refresh a table using JavaScript ?

Thanks

Answers

  • kthorngrenkthorngren Posts: 21,179Questions: 26Answers: 4,923

    Assuming you are using ajax you can use the ajax.reload() API. If your data source is different then please post your Datatables init code and describe how you initially populate the table.

    Kevin

  • gman0104gman0104 Posts: 7Questions: 3Answers: 0

    I'm using Microsoft power apps portal and i build my table up using HTML that is populated by looping through a FetchXML Query result set. e.g

    for items in result set
    <td>

    G

  • kthorngrenkthorngren Posts: 21,179Questions: 26Answers: 4,923

    Try using destroy() before fetching and repopulating the HTML table. Once the reloaded table is built then reinitialize your Datatable.

    Kevin

This discussion has been closed.