Delete records from a table

I was able to look at your project and I think I figured it out. You want the email tables on the “Overview” window to update, right? Since those tables are not set to poll, you can manually refresh the table that has been altered using this at the bottom of your “Delete Email Button” script:

overviewWindow = system.gui.getWindow('Overview').getRootContainer()

if EmailRole == "User":
	system.db.refresh(overviewWindow.getComponent('CustomerEmailTable'), "data")
elif EmailRole == "Dist":
	system.db.refresh(overviewWindow.getComponent('DistEmailTable'), "data")
elif EmailRole == "Nass":
	system.db.refresh(overviewWindow.getComponent('NassEmailTable'), "data")

This will ensure that only the table that has been changed will be refreshed. You will need to put this script on your “Add Email Button” as well in order to refresh those tables when emails are added.