When you specify a variable
name as a substitution string in the HTML drill-down mode, the applet
or control replaces the entire string with the value of the variable
as it is specified in the selected graph element. The syntax of the
substitution string is as follows:
Because JavaScript is
case sensitive, the name of the variable must be exactly the same
as it is in the data set.
A variable name substitution
string might look like this:
http://ourweb.com/uspop/{&statename}/poptable.htm
The substitution string above could be used in a Web presentation
that begins with a map of the United States. In response to a drill-down
action in HTML mode, the value of the STATENAME variable for the selected
state would be substituted into the URL. The resulting URL would point
to a Web page that contains a table of population information for
the selected state.
In the HTML drill-down
mode, you can specify variable roles or labels as substitution strings,
using drill-down tags, as described in Understanding Variable Roles. The syntax of these substitution
strings is as follows:
where
drill-down-tag specifies a variable role or label
in the initial graph. The applet or control replaces the substitution
string by deriving a variable name from the role or label, and applying
the value of that variable to the URL. The value is taken from the
data that is associated with the selected graph element.
For example, a Web presentation
could be configured using this URL:
http://ourweb.com/regstaff/{&G_INDEPV}/stafflist.htm.
When a Web user selects
a data element with the independent variable REGION, if the value
of REGION is East, the applet displays this URL:
http://ourweb.com/regstaff/East/stafflist.htm.
The default value for
the DRILLPATTERN parameter is as follows:
{&G_INDEPV,f}{&G_GROUPV,f}{&G_SUBGRV,f}.html
The URL that is created
points to an HTML file that is in the same directory as the top level
HTML file. The name of the file is a concatenation of formatted values
for the first independent, group, and subgroup variables defined in
the data set.