This is probably easy but I can't manage to get the index of a table in the form as you can see in
I have selected the table I want the index from the following way :
Iterate the top level tables in the form until the table with name/id is found.
You now have your index.
Be sure to check the overhead of such a process.