Copy link to clipboard
Copied
Hello All,
I have an index generated from by book and I use some JavaScript code to change the sort order of some of the topics. When I am done changing the topics, I want to update the index from JavaScript. Is it possible to do this? Thanks in advance.
Rick Quatro
rick at frameexpert dot com
585-659-8267
Ah, you're right. In that case, I think you can just use myIndex.generate() -- all the arguments are optional so if you leave them out, I think it just re-generates the existing index.
Dave
Copy link to clipboard
Copied
I think it's as simple as:
myIndex.update();
where myIndex is a reference to the index you want to update.
Dave
Copy link to clipboard
Copied
Hi Dave,
Thanks for the answer. I don't think this will work, though. According to the Adobe documentation:
void update ()
Updates the index preview pane. Note: Does not update the index.
Rick
Copy link to clipboard
Copied
Ah, you're right. In that case, I think you can just use myIndex.generate() -- all the arguments are optional so if you leave them out, I think it just re-generates the existing index.
Dave
Copy link to clipboard
Copied
Hi Dave,
This appears to be working. Thank you very much.
Rick
Find more inspiration, events, and resources on the new Adobe Community
Explore Now