How To: Rename field names for Identify and Query results in an HTML Viewer
In an ArcIMS Designer-created HTML Viewer, by default, all field names are displayed as they are saved in the database. You may want to display more meaningful column headings than the often-cryptic field names used in data sources. For ArcSDE-served data in particular, you may want to display simpler field names than the default OWNER.TABLE.FIELD format.
For additional information, see the section titled 'Modifying attribute data display' within the installable document "Customizing ArcIMS - HTML Viewer".
These simple edits to a few lines in the ArcIMSparam.js file allow you to associate meaningful aliases to field names.
- After creating an HTML Viewer Web site, open the ArcIMSparam.js file in a text editor such as WordPad.
- Find the following line:
and set it to:
- Then further down, add NAME:alias pairs for the desired layers and an empty string for fields that will remain unchanged. For example:
fieldAliasList="ZONECODE:Zoning|BLDGHT:Maximum Building Height"|POP1996:Population 1996";
fieldAliasList="AREA:Area (sq. metres)";
- Save ArcIMSparam.js.