HOW TO

Omit #SHAPE# and #ID# fields from the HTML Viewer's table display

Last Published: April 25, 2020

Summary

You can customize your Web site to omit the #SHAPE# and #ID# fields from the table returned to the client.

Note:
For information on how to achieve the same results using ArcIMS 3.1, 4.0, or 4.0.1, see the Customizing HTML Viewer documentation that is installed with ArcIMS. To install this PDF you must do a custom install.

Procedure



  1. Open the Web site's aimsIdentify.js file in a text editor such as WordPad.
  2. Find the following string:

    Code:
    for (var f=0;f<fName1.length;f++


    Note:
    The first occurence of this string is about half way into the file. The second occurrence is 20 lines after.

  3. Modify both occurrences of this string to match the following:

    Code:
    for (var f=0;(f<fName1.length - 2);f++)


    Note:
    This modification excludes the last two fields, #SHAPE# and #ID#, of the attribute data when displaying in the client.


    Warning:
    Do not delete these fields from the original table. The information in these fields is crucial to the XML Request sent to the Spatial Server.

  4. Save the file.
  5. Close and reopen your browser. The changes should have taken effect.

Article ID:000002430

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic