Yes, I do something similar... However it breaks when the tables get too long. For <100 to few 100s of items it works.