[mapserver-users] Template for No Records?

Matthew Hatcher MJHatcher@space.qinetiq.com
Tue, 22 Oct 2002 09:00:29 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C279A1.165D6430
Content-Type: text/plain; charset="ISO-8859-1"

Hi Dave,

I asked this question a little while ago, and received very helpful answers,
so it is now my turn to share the knowledge!

That's the good thing about these subscriber lists.

Anyway, in your map file, you need to add EMPTY and ERROR tags to the web
section.

EMPTY  should include a URL to display if the query returns no results.
ERROR should include a URL to be forwarded to if an error occurs.

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.

Matt.


-----Original Message-----
From: Lowther, David W [mailto:dlowther@ou.edu]
Sent: 21 October 2002 21:38
To: Mapserver-Users (E-mail)
Subject: [mapserver-users] Template for No Records?


Is there any way to display something other than:
msQueryByPoint(): Search returned no results. No matching record(s) found. 
when your query doesnt match records?

Can I use an different HTML file?

Thanks,

Dave Lowther


**********************************************************************
The information contained in this email and any subsequent
 correspondence is private and is intended solely for the 
intended recipient(s). For those other than the intended
 recipient(s) any disclosure, copying, distribution, or any 
action taken or omitted to be taken in reliance on such 
information is prohibited and may be unlawful.
**********************************************************************


------_=_NextPart_001_01C279A1.165D6430
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

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

<P><FONT SIZE=3D2>Hi Dave,</FONT>
</P>

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

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

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

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

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

<P><FONT SIZE=3D2>Matt.</FONT>
</P>
<BR>

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

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

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

<P><FONT SIZE=3D2>Thanks,</FONT>
</P>

<P><FONT SIZE=3D2>Dave Lowther</FONT>
</P>

<CODE><FONT SIZE=3D3><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>
------_=_NextPart_001_01C279A1.165D6430--