English

Bug: Classification in HTML Viewer Thematic Map sample does not work with ArcSDE layer

Description

The HTML Viewer Thematic Map sample was developed for shapefiles, not for ArcSDE layers. It queries the features by the following WHERE clause:

"#ID#>-1"

Cause

Since the field #ID# does not usually exist in an ArcSDE table, the classification does not work with ArcSDE layer.

Workaround

To make the sample work with a shapefile as well as an ArcSDE layer, open the aimsClassRenderer.js file from <DRIVE>/ArcIMS/website/htmlviewer/javascript folder in a text editor and change the following line:

Code:
theString += ' <QUERY subfields="' + theField + '" where="#ID# > -1" />\n';

-- to --

Code:
theString += ' <QUERY subfields="' + theField + '" where="" />\n';