| Java menu knowledge base XIXL - Multiple Parameter Indices
This is when your applet parameters contain the code for
more than one XIXL index.
Why multiple parameter indices?
You need multiple parameter indices in one of two cases: (1) you are using a
multi-tab applet with several indices (i.e. an iTree applet), or (2) you
are using DRILL, ADD or INSERT commands and want to add the additional
index (segments) from parameters rather than an external source.
How can I set up multiple parameter indices?
The important thing is that the entry parameters, which
are used to contain parameter indices, should have unique identifiers
attached to show which of several indices they belong to. The following
small example sets up two small indices, each with 3 menu items.
<param name=entry1-0 value="text:entry 1|1| | | ">
<param name=entry1-1 value="text:entry 2|1| | | ">
<param name=entry1-2 value="text:entry 3|1| | | ">
<param name=entry2-0 value="text:entry a|1| | | ">
<param name=entry2-1 value="text:entry b|1| | | ">
<param name=entry2-2 value="text:entry c|1| | | ">
In the above example, 1- and 2- have
been used to uniquely identify the indices. The unique identifier is placed between the word entry and the number of the menu item in the name of the parameter. You can use any unique identifiers
you wish (within reason). However when it comes to telling the applet
to access this index, you must tell the applet what the unique identifier
is. For example, if you are using an iTree applet with multiple tabs,
the following parameters will tell it to use the first of the these
indices for the first tab, and the second of these indices for the second
tab.
<param name=tabcontent0 value="1-">
<param name=tabcontent1 value="2-">
A second example: you are using a normal single index applet, but you want to load a different index
when a particular page is loaded, without reloading the applet.
<param name=menufile value="1-">
<param name=entry1-4 value="TEXT:Products;|1| |LINK:products.htm,main;DRILL:2-| ">
The first of these lines tells the applet to use the index with the
identifier 1- as the first index. This first index
has, as its 4th entry, the second of these lines - and this creates
a menu item with a DRILL attached. The effect of this is that when the
user clicks on the 4th menu item, (a) the page products.htm
is loaded into the main frame, and (b) the applet switches indices to the index marked
with the identifier 2-.
|
|