<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [mapserver-users] Template for No Records?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi Dave,</FONT>
</P>

<P><FONT SIZE=2>I asked this question a little while ago, and received very helpful answers, so it is now my turn to share the knowledge!</FONT></P>

<P><FONT SIZE=2>That's the good thing about these subscriber lists.</FONT>
</P>

<P><FONT SIZE=2>Anyway, in your map file, you need to add EMPTY and ERROR tags to the web section.</FONT>
</P>

<P><FONT SIZE=2>EMPTY&nbsp; should include a URL to display if the query returns no results.</FONT>
<BR><FONT SIZE=2>ERROR should include a URL to be forwarded to if an error occurs.</FONT>
</P>

<P><FONT SIZE=2>Unfortunately, these URLs are simply forwarded to and are not treated as templates, so you can't include the usual template tags, but it's still possible to make things look much better than the old error messages.</FONT></P>

<P><FONT SIZE=2>Matt.</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Lowther, David W [<A HREF="mailto:dlowther@ou.edu">mailto:dlowther@ou.edu</A>]</FONT>
<BR><FONT SIZE=2>Sent: 21 October 2002 21:38</FONT>
<BR><FONT SIZE=2>To: Mapserver-Users (E-mail)</FONT>
<BR><FONT SIZE=2>Subject: [mapserver-users] Template for No Records?</FONT>
</P>
<BR>

<P><FONT SIZE=2>Is there any way to display something other than:</FONT>
<BR><FONT SIZE=2>msQueryByPoint(): Search returned no results. No matching record(s) found. </FONT>
<BR><FONT SIZE=2>when your query doesnt match records?</FONT>
</P>

<P><FONT SIZE=2>Can I use an different HTML file?</FONT>
</P>

<P><FONT SIZE=2>Thanks,</FONT>
</P>

<P><FONT SIZE=2>Dave Lowther</FONT>
</P>

<CODE><FONT SIZE=3><BR>
<BR>
**********************************************************************<BR>
The information contained in this email and any subsequent<BR>
 correspondence is private and is intended solely for the <BR>
intended recipient(s). For those other than the intended<BR>
 recipient(s) any disclosure, copying, distribution, or any <BR>
action taken or omitted to be taken in reliance on such <BR>
information is prohibited and may be unlawful.<BR>
**********************************************************************<BR>
</FONT></CODE>
</BODY>
</HTML>