<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Blammo a &eacute;crit&nbsp;:<br>
<br>
<blockquote cite="mid413F1D4B.5040407@ci.stpaul.mn.us" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
  <blockquote><span class="moz-txt-link-freetext">map=global/view.map&amp;layers=usstates_poly_utm+mncounty_poly_utm&amp;qlayer=usstates_poly_utm&amp;qitem=FIRST_NAME&amp;qstring=Minnesota&amp;mode=itemquery&amp;mapext=shapes</span>
    <br>
  </blockquote>
The error:<br>
  <blockquote><b>msQueryByAttributes(): Query error. Requested layer
has
no templates defined. </b><br>
  </blockquote>
  <br>
The MapFile (partial):
  <br>
  <br>
&nbsp;QUERYMAP
  <br>
&nbsp;&nbsp; STATUS ON
  <br>
&nbsp;&nbsp; STYLE SELECTED
  <br>
&nbsp;END
  <br>
  <br>
&nbsp;LAYER
  <br>
&nbsp;&nbsp; NAME 'usstates_poly_utm'
  <br>
</blockquote>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #add this line :<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; TEMPLATE&nbsp; "path/to/the_template_file.html"<br>
<blockquote cite="mid413F1D4B.5040407@ci.stpaul.mn.us" type="cite">&nbsp;&nbsp;
DATA '/var/www/map_data/usstates_poly_utm'
  <br>
&nbsp;&nbsp; TYPE POLYGON
  <br>
&nbsp;&nbsp; STATUS OFF # must explicitly turn this layer on
  <br>
&nbsp;&nbsp; CLASS
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 255 200
  <br>
&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 50 50 50
  <br>
&nbsp;&nbsp; END
  <br>
&nbsp;END
  <br>
  <br>
Partial data dump from dbfdump:
  <br>
What am I doing wrong please?
  <br>
  <br>
bobb<br>
</blockquote>
<br>
and look <a
 href="http://mapserver.gis.umn.edu/doc42/template-reference.html">http://mapserver.gis.umn.edu/doc42/template-reference.html</a>
to create the template file. <br>
Templates&nbsp; define the presentation of&nbsp; the results of a query<br>
<br>
<br>
</body>
</html>