Limit fields displayed for Identify and Query results in an HTML Viewer

Last Published: April 25, 2020


In an ArcIMS Designer-created HTML Viewer, ALL attribute fields are displayed in an Identify or Query results table by default. The ArcIMSparam.js file for the Viewer can be modified so that only certain fields are displayed.

For additional information, see 'Modifying attribute data display' in Chapter 2 of "Customizing ArcIMS: HTML Viewer". This document is available through the ArcIMS installation process and/or from the ArcIMS CD-ROM.


Instructions provided describe how to limit which fields are displayed in the Identify and Query results table:

  1. In a text editor, open the ArcIMSparam.js file for the HTML Viewer Web site. In a typical installation of ArcIMS, this file is located at /ArcIMS/Website/<name of Web site>.
  2. Find the following line:
    var swapSelectFields=false;

    and set it to:
    var swapSelectFields=true;

  3. Determine the index number [0´┐Żn] of the layer whose field list needs to be limited. The index numbers correspond to the top-to-bottom order of the layers as they appear in the Viewer's Layer list.

    Noting the field names used in the source data, edit the selFieldList[n] lines accordingly.

    For example,
    selFieldList[0]="AREA ZONE_ID ZONECODE BLDGHT POP1996 #ID# #SHAPE#";
    selFieldList[1]="LNGTH STR_ID NAME CLASS #ID# #SHAPE#";

    The #SHAPE# and #ID# fields are required unless #ALL# is selected.

  4. Save and close the file.
  5. The HTML Viewer Web site may need to be fully refreshed for the changes to take effect.

    In Internet Explorer, press Ctrl+F5.
    In Netscape, click the Reload button.

Article ID:000002416

  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic