reload a table each time you add a new record

for example I charge the names in an input in the upper part and then in the same page add a table that shows the newly added items but you have to reload the page to show the new ones as a refresh with a hooks but what is the part How to update the table element?

Hi,
You need to refresh the dataset and the table.

Roi.