Thanks for your suggestions. In my case everything should happen dynamically. Whenever the user clicks on the button it should create a table box with its corresponding table fields. For example if the user is adding a new field in a table that should come automatically in the table box without any manual effort.
We have arround 10 tables now and in future no of tables may increase. So there shouldn't be any manual effort for this. Everything should happen dynamically, no matter how many tables/fields users adds in the list.