Hi !
I have just found and easy way to deal with toc.
Just start with a default doc, in which TOC is already set-up.
Second part is to create a empty attribute field in the preferences, which will be auto-created on the creation of a text frame.
But, I will need a bit of code to automatically refresh the text inside the frame into the "value" column.
I attached the file below to show you precisely what I am talking about.
The TOC process becomes speedy and painless.
May someone help to code this ?
Thanks,
LeHibou
[attachment deleted by admin]