The itemnquery does not work

Randy James rjames57 at YAHOO.COM
Wed Sep 28 16:59:22 EDT 2005


Been a while since i set up a query but it looks like you are missing the qitem,
and qstring

<input type="hidden" name="savequery" value="true">
<input type="hidden" name="qitem" value="column in database">

<input type="TEXT" size="30" name="qstring" value=""> collects string to pass to
query

--- Holmand Darío Villalba Barajas <holmand24 at GMAIL.COM> wrote:

> I am doing a consultation for attributes with the itemnquery, but the
> following mistake goes out for me:
> 
> msQueryByAttributes(): Query error. No query expression defined.
> 
> This is what I do:
> 
> <input type="hidden" name="item" value="CIUDAD">
> <input type="hidden" name="atributo" value="nombre">
> <input type="hidden" name="qlayer" value="Ciudades">
> <input type="text" name="nombre" size="10">
> <input type="submit" value="Consultar">
> <input type="radio" name="mode" value="itemnquery">
> 
>  LAYER
>     # name of layer
>     NAME "Ciudades"
>     GROUP "MAPAS_VECTORIALES"
>     # always returned with interface
>     STATUS ON
>     # actual data pointer
>     DATA "data/ciudades"
>     # what type of data is this?
>     TYPE POINT
> 	FILTERITEM "CIUDAD"
> 	FILTER "%nombre%"
>     TOLERANCE 5
>     #LABELITEM "CIUDAD"
>     # data is queryable
>     # query templates for HTML-based queries
>     HEADER "templates/ciudades_query_header.html"
>     TEMPLATE "templates/ciudades_query_body.html"
>     # how will this data look?
> 
> someone can say to me that it(he,she) is bad.
> I use mapserver 4.x
> 
> Thank you.
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the mapserver-users mailing list