Customizing Information Console online help : Changing help content : Changing the index

Changing the index

The index displays keywords for help topics from individual content files. The index.js file located in the <document root>\wwhdata\js directory contains the index entries. The index.js file controls the following items:

n  
n  
n  

For example, in the using-ip document root, the index entry for QBE expressions, starting at the letter Q, looks like the following code:

A=P.fA("Q",null,null,"002");
B=A.fA("QBE expressions");
C=B.fA("adding date values to",new Array("68#439828"));
C=B.fA("creating",new Array("66#554566","68#553349"));
C=B.fA("defining ad hoc parameters and",new Array("66#439403","67#439717"));
C=B.fA("entering literal characters in",new Array("68#553289","68#515853"));
C=B.fA("matching string values and",new Array("68#514920"));
C=B.fA("retrieving blank characters and",new Array("68#515837"));
C=B.fA("retrieving null values and",new Array("68#439781"));

This code establishes the following structure:

n  
n  
The first entry below ''Q'' is the ''QBE expressions'' entry. This entry is one level down in the hierarchy, B=A.fA, of the index for ''Q''. ''QBE Expressions'' is merely a label and does not link to anything.
n  
On the next level down in the hierarchy, C=B.fA, has seven entries, one for each of the sub-topics of QBE Expressions. Each entry has a label and an array of links to topics that the user can choose.

Figure 11-10 shows the hierarchy produced by this code.

Figure 11-10  The index hierarchy for using-ip

(c) Copyright Actuate Corporation 2011