Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can an index be programmatically updated with JavaScript

Community Expert ,
Dec 17, 2009 Dec 17, 2009

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

TOPICS
Scripting
695
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Dec 17, 2009 Dec 17, 2009

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

Translate
Advocate ,
Dec 17, 2009 Dec 17, 2009

I think it's as simple as:

myIndex.update();

where myIndex is a reference to the index you want to update.

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2009 Dec 17, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 17, 2009 Dec 17, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2009 Dec 17, 2009
LATEST

Hi Dave,

This appears to be working. Thank you very much.

Rick

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines