How To: Limit fields displayed for Identify and Query results in an HTML Viewer
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:
- 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>.
- Find the following line:
and set it to:
- 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.
selFieldList="AREA ZONE_ID ZONECODE BLDGHT POP1996 #ID# #SHAPE#";
selFieldList="LNGTH STR_ID NAME CLASS #ID# #SHAPE#";
The #SHAPE# and #ID# fields are required unless #ALL# is selected.
- Save and close the file.
- 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.