English

How To: Modify the HTML Viewer query builder for Image Services using ArcSDE for Coverages data

Summary

Instructions provided describe how to modify the HTML Viewer query builder for Image Services using ArcSDE for Coverages data. The HTML Viewer query builder can be modified by editing the aimsQuery.js file.

Procedure

  1. Open the aimsQuery.js file using a text editor. This file is located under the JavaScript directory for the Web site; for example, c:/arcims/website/sdecoverage/javascript/aimsQuery.js.
  2. Search for the following function using the search tool in the text editor: 'function getFind(theValue)'.
  3. Replace the following line in that function:

    Code:
    theTempString = "(UPPER(" + LayerFields[i] + ") LIKE '%" + theValue.toUpperCase() + "%')";

    with

    Code:
    theTempString = "UPPER(" + LayerFields[i] + ") LIKE '%" + theValue.toUpperCase() + "%'";

  4. Replace the following line in that function:

    Code:
    theTempString = "(" + LayerFields[i] + " LIKE '%" + theValue + "%')";

    with

    Code:
    theTempString = "" + LayerFields[i] + " LIKE '%" + theValue + "%'";

  5. Save the file and exit.
  6. Open the HTML Web site that was just edited. Using this HTML viewer, the FIND tool can now be used to query.