The itemnquery does not work

Randy James rjames57 at YAHOO.COM
Thu Sep 29 12:37:32 EDT 2005


Hi Holmand

I am guessing that you could try working with the input type(HTML programming) or
use on of the other languages available such as PHP. The programers on the list
most likly can give you examples.

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


--- Holmand Darío Villalba Barajas <holmand24 at gmail.com> wrote:

> Hi Randy, I Have a question:
> If I want to spend(pass) several parameters to my consultation from a
> list or from a file .txt, since I might do it?
> Thank you.
> 
> 2005/9/28, Randy James <rjames57 at yahoo.com>:
> > 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
> >
> 



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



More information about the mapserver-users mailing list