Bug: Classification in HTML Viewer Thematic Map sample does not work with ArcSDE layer
The HTML Viewer Thematic Map sample was developed for shapefiles, not for ArcSDE layers. It queries the features by the following WHERE clause:
Since the field #ID# does not usually exist in an ArcSDE table, the classification does not work with ArcSDE layer.
theString += ' <QUERY subfields="' + theField + '" where="#ID# > -1" />\n';
-- to --
theString += ' <QUERY subfields="' + theField + '" where="" />\n';