# Update table data when leaving pop-up window

**URL:** <https://forum.inductiveautomation.com/t/update-table-data-when-leaving-pop-up-window/26436>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [July 10, 2019, 1:36pm UTC](https://forum.inductiveautomation.com/t/update-table-data-when-leaving-pop-up-window/26436 "2019-07-10T13:36:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tberryhill](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tberryhill](https://forum.inductiveautomation.com/u/tberryhill)\
**Post date:** [July 10, 2019, 1:36pm UTC](https://forum.inductiveautomation.com/t/update-table-data-when-leaving-pop-up-window/26436/1 "2019-07-10T13:36:08Z")

</div>

I’ve figured out you can use `system.db.refresh()` to force a refresh of power table data, which is really handy, but I’ve got a case where I can’t figure out how to use it. I’ve got a power table showing some DB data in a maximized window, and a button to open a pop-up window to edit some fields of the selected record, then push to the DB. That part works, but I’d like the table in the previous window to immediately show the updated data when the pop-up window closes. So, how can I trigger an update of table data in another window?

Thanks y’all.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [July 10, 2019, 1:53pm UTC](https://forum.inductiveautomation.com/t/update-table-data-when-leaving-pop-up-window/26436/2 "2019-07-10T13:53:47Z")

</div>

> system.db.refresh(system.gui.getWindow('PathToWindowHoldingTable').getRootContainer().getComponent('Power Table'),'data')
