[Mapserver-users] itemquery on Mapserver 3.6

Michael Schulz mschulz at webgis.de
Mon Mar 10 06:25:20 EST 2003


Hi Thomas,

> The javascript executed for example on the onClick-event of a button looks like this:
>         function startquery()  {
>                 document.mapserv.target="_self";
>                 document.mapserv.mode.checked=true;
>                 document.mapserv.mode.value="itemquery";
>                 document.mapserv.qlayer.value="cityareas";
>                 document.mapserv.filteritem.value="NAME";
>                 document.mapserv.filter.value="Munich";

I think the problem is that you don't refer to a layer specific filter. If you want to assign a filter via URL use this syntax "map_layername_filter=yourfiltervalue". It might also be important to include in your filterstring how to query for results (string, logical, regex
comparison), for regex comparisons you should enclose your statement in //, e.g. "/your_regex/", for logical expression in () for string expressions in "".

HTH, Michael


--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz at webgis.de                             www.webgis.de





More information about the mapserver-users mailing list