<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4613.1700" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff size=2>Thanks 
for the quick reply.</FONT></SPAN></DIV>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff size=2>Please 
forgive me, I'm fairly new at this.  I'm not clear on two things.  I 
assume when you say "your item", the item is the DBASE item?  And 
second, how can I set the FILTER in the mapfile to the value, when the value is 
to be entered by the user?</FONT></SPAN></DIV>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff size=2>Thanks 
again,</FONT></SPAN></DIV>
<DIV><SPAN class=022225516-11062002><FONT face=Arial color=#0000ff 
size=2>Dan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Ryan, Adam 
  [mailto:ARyan@co.linn.or.us]<BR><B>Sent:</B> Tuesday, June 11, 2002 11:33 
  AM<BR><B>To:</B> Martin, Daniel; 
  'mapserver-users@lists.gis.umn.edu'<BR><B>Subject:</B> RE: [mapserver-users] 
  No filter defined on itemquery.<BR><BR></FONT></DIV>
  <DIV><SPAN class=107034216-11062002><FONT face=Arial color=#0000ff size=2>I 
  struggled through the same thing.  The solution is to set the 
  layer's filter and filteritem to your value and item respectively, 
  but I don't understand why either.  Watch for 
  punctuation.</FONT></SPAN></DIV>
  <DIV><SPAN class=107034216-11062002><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=107034216-11062002><FONT face=Arial color=#0000ff 
  size=2>Adam  </FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Martin, Daniel 
    [mailto:DMartin@erac.com]<BR><B>Sent:</B> Tuesday, June 11, 2002 7:17 
    AM<BR><B>To:</B> 'mapserver-users@lists.gis.umn.edu'<BR><B>Subject:</B> 
    [mapserver-users] No filter defined on itemquery.<BR><BR></FONT></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>When I try to 
    itemquery a Postal Code layer, I get:</FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002>msQueryByAttributes(): Query error. 
    Requested layer has no filter defined. </SPAN></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>My URL looks 
    like this:</FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2><A 
    href="http://myserver/cgi-bin/mapserv.exe?map=d%3A%5CMapServer%5CMAPFiles%5CMOMap.map&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&map_web_imageurl=%2Ftemp%2F&mode=itemquery&value=63105&qlayer=Zip+Codes&item=ZIP&mapext=shapes">http://myserver/cgi-bin/mapserv.exe?map=d%3A%5CMapServer%5CMAPFiles%5CMOMap.map&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&map_web_imageurl=%2Ftemp%2F&mode=itemquery&value=63105&qlayer=Zip+Codes&item=ZIP&mapext=shapes</A></FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>I've included 
    the layer definition at the bottom of this email.  I don't 
    understand.  Why do I need a filter?  What filter do I need?  
    I've read everything about this I could find before asking you, but the 
    documentation on FILTER is very brief, and the mail archives didn't provide 
    a solution.  I should point out that I'm using OGR MapInfo TAB 
    data.</FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002></SPAN><SPAN 
    class=581251014-11062002></SPAN><SPAN class=581251014-11062002></SPAN><SPAN 
    class=581251014-11062002><FONT face=Arial size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>Thanks in 
    advance,</FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>Dan 
    Martin</FONT></SPAN></DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial 
    size=2></FONT></SPAN> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>LAYER<BR>  
    NAME "Zip Codes"<BR>  PROJECTION<BR>    
    "proj=latlong"<BR>  END</FONT></SPAN></DIV>
    <DIV><FONT face=Arial size=2></FONT> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>  
    CONNECTIONTYPE OGR<BR>  CONNECTION 
    "\GISData\Namerca\USA\Usa_Maps\USZIPBdy.TAB"</FONT></SPAN></DIV>
    <DIV><FONT face=Arial size=2></FONT> </DIV>
    <DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>  TYPE 
    POLYGON<BR>  STATUS OFF<BR> LABELITEM "ZIP"<BR>  
    CLASS<BR>    SYMBOL 'circle'<BR>    SIZE 
    2<BR>    NAME 'ZIP Code Boundaries'<BR>    
    OUTLINECOLOR 50 50 50 <BR>    COLOR -1 -1 
    -1<BR>  LABEL<BR>      POSITION 
    cc<BR>      TYPE 
    TRUETYPE<BR>      FONT 
    arial_narrow<BR>      MINSIZE 
    8<BR>      MAXSIZE 
    12<BR>      COLOR 0 0 
    0<BR>      OUTLINECOLOR 255 255 
    255<BR>      ANTIALIAS 
    true<BR>   END<BR>  END<BR>  TEMPLATE 
    "..\queryTemplates\US_ZIP_Code_query.html"<BR>END</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>