How to retrieve tablename from table Event method?

Table events are perfect to do lot’s of stuff…

Custom record logging for example is something I’m working on.
The onRecordUpdate option on a table returns the record object in arguments[0]. That’s nice and handy.

What I would like to know is which table did triggered the event method?
I could lookup the primairy key field from the record object and get the table name by that, but that would be way to much db activity for each record update.

Maybe retrieving the tablename by var vTableName = arguments[1] would be great, I think…

Anyone having a better idea how to retrieve the tablename?

databaseManager.getTable(record) should do…

patrick:
databaseManager.getTable(record) should do…

Thanks Patrick! databaseManager.getTable(record) works perfectly. :)