you might want something like available in the demo page below "Various 
possibilities for attribute search". Check the 'Cities Options Suggest', 
the corresponding XML file is at

http://www.pmapper.net/demo/p3/config/query/search.xml

I think Andre updated some parts of the wiki to explain some of the 
settings.

armin



On 27/02/2008 08:14, Jan Jemelka wrote:
> yes, searching on SHPs works fine for me. But in one case I would like 
> to search on SHP table in two columns. First column is parcel number, 
> which will user enter in common textbox. But the second column contain 
> cadastral unit in which the user want the parcel search on. There are 
> just a few cadastral units with long names and there for is reasonable 
> to choose it from combobox.
> 
> So, is it possible to solve this problem anyhow for one SHP with for 
> example some code in search.xml, or should I divide the main SHP in 
> separate SHPs by the cadastral units and then make separate searchitem 
> declaration for each of divided SHPs in search.xml?
> 
> Thanks
> 
> JJ
> 
> 2008/2/26, Armin Burger <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
> 
>     no, SQL commands are just possible for Postgis layers. Search on
>     shapefiles works with Mapscript filter expressions using mainly regular
>     expressions built into the code.
> 
>     armin
> 
> 
> 
> 
>     On 26/02/2008 06:58, Jan Jemelka wrote:
>      > Hi pmappers,
>      >
>      > is it possible to use SQL for querying one SHP-layer? What kind
>     of code
>      > should I
>      > write to search.xml?
>      > Thanks in advance
>      >
>      > Jan Jemelka
> 
>      >
>     -------------------------------------------------------------------------
>      > This SF.net email is sponsored by: Microsoft
>      > Defy all challenges. Microsoft(R) Visual Studio 2008.
>      > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>      > _______________________________________________
>      > pmapper-users mailing list
>      > [email protected]
>     <mailto:[email protected]>
>      > https://lists.sourceforge.net/lists/listinfo/pmapper-users
>      >
> 
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to