How to refresh table after creating a new line via pop up?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I have made a global action on a table which displays a pop up to create a new record in the table. Essentially I just click save and close the pop up (need to make one button for that eventually), but when the pop up closes, the table doesn't show the new entry. When I refresh the page, the entry shows. What would be a good approach to show the new row in the table without refreshing the page?
Photo of Matthías Ragnarsson

Posted 4 years ago

  • 1
Photo of Moshe Karmel

Moshe Karmel, Champion

  • 8,646 Points 5k badge 2x thumb
Add an action to Re-Query the model, or if you're using Javascript use

yourModel.updateData();
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Or just make the button with multiple actions and query that model.
Thanks, used Pat's solution, pretty straight forward. :)
(Edited)