<br><font size=2 face="sans-serif">Thanks!</font>
<br><font size=2 face="sans-serif">Here is more details on what I need
to do</font>
<br><font size=2 face="sans-serif">Suppose I have one layer which contains
the province in canada and their cities.</font>
<br><font size=2 face="sans-serif">When the user hover or click on a province,
I want this information in a popup or a div (the client is openlayers and
I use OpenLayers.Control.WMSGetFeatureInfo)</font>
<br>
<br><font size=2 face="sans-serif">If the user click on the province of
Quebec....</font>
<br><font size=2 face="sans-serif">There are 2000 cities in Quebec</font>
<br><font size=2 face="sans-serif">1: city name 1</font>
<br><font size=2 face="sans-serif">2: city name 2</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">2000: city name 2000</font>
<br>
<br><font size=2 face="sans-serif">So In this case I think a field name
should be supported in a header template</font>
<br>
<br><font size=2 face="sans-serif">Perhaps I misunderstood what should
be managed by the client or the server??</font>
<br>
<br><font size=2 face="sans-serif">thanks again</font>
<br><font size=2 face="sans-serif">Steve</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Daniel Morissette &lt;dmorissette@mapgears.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">07/04/2010 02:16 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] record element
in query header</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Steve.Toutant@inspq.qc.ca wrote:<br>
&gt; <br>
&gt; If I put [provincename] in the template I got the value, per example<br>
&gt; In the Template<br>
&gt; [lrn]: [provincename] - [elementname]&lt;br&gt;<br>
&gt; <br>
&gt; The result is:<br>
&gt; 1: Québec - blabla 1<br>
&gt; 2: Québec - blabla 2<br>
&gt; 3: Québec - blabla 3<br>
&gt; <br>
&gt; But I don't want to put it in the template since the same information
<br>
&gt; will be repeated.<br>
&gt; thanks for your help!<br>
<br>
I'm not exactly sure if a field name should be supported in the header
<br>
template, but based on a quick browse of the code there are two other <br>
ways you could possibly pass the information (depending on what you have
<br>
on the client side):<br>
<br>
1- You can use parameters from the URL in a template tag. e.g. if you <br>
pass myprov=Quebec in the URL then you should be able to use [myprov] in
<br>
your template.<br>
<br>
2- You can reference layer-level metadata in query templates using <br>
[metadata_...]<br>
<br>
(Those are untested hints based on a quick browse of the source)<br>
<br>
Daniel<br>
-- <br>
Daniel Morissette<br>
http://www.mapgears.com/<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>