As a continuation of the previous text, and after further research...

...After changing mi file and  validate this xml field with Altova XMLSpy
I'm said that this field is a valid xml, but when I run the search  for
"Instalaciones" nothing happen,  and I dont have any notice in the
error_log_php:

<?xml version="1.0" encoding="UTF-8"?>
<searchlist version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="C:\ms4w\apps\pmapper-3.1-beta4\incphp\query\search.xsd">
        <dataroot/>
                <searchitem description="Instalaciones" 
name="instalaciones_coll">
                <layer type="shape" name="instalaciones_coll">
                        <field type="s" description="Nombre" name="NOM" 
wildcard="2">
                             <definition type="options" connectiontype="ms" 
sort="asc"
firstoption="*">
                                 <mslayer keyfield="NOM" showfield="NOM" >
                                 </mslayer>
                            </definition>
                        </field>
                </layer>
        </searchitem>
</searchlist>

Wait for your help



jespsan wrote:
> 
> hi, I´m new in pmapper, and I have a big problem for a few days.
> I have prepared a Web viewer and everthing works fine except for the
> configuration of the xml search file.
> 
> I want to configure a search query with a shape:municipios
> 
> If i put the following xml search file all is good:
> 
> 
> #<?xml version='1.0'?>
> #<searchlist version="1.0">   
> #    <dataroot></dataroot>  
> #    
> # 
> #   <searchitem name="municipios" description="Municipios"> 
> #       <layer type="shape" name="municipios">  
> #          <field type="s" name="NOM_MUN" description="Nombre" 
> wildcard="0" /> 
> #       </layer>
> #    </searchitem> 
> #
> #  </searchlist> 
> 
> 
> 
> 
> but when I want to set my search as DEFINITION TYPE= "options", then I put
> the next xml search file:
> 
> 
> 
> 
> #<?xml version='1.0'?>
> #<searchlist version="1.0">   
> #    <dataroot></dataroot>  
> #    
> # 
> #   <searchitem name="municipios" description="Municipios">
> #        <layer type="shape" name="municipios">
> #            <field type="s" name="NOM_MUN" description="Municipio" 
> wildcard="2" />
> #                <definition type="options" connectiontype="ms" sort="asc"
> firstoption="*">
> #                <mslayer encoding="ISO-8859-1" keyfield="NOM_MUN" 
> showfield="NOM_MUN"/>
> #                </definition>
> #            </field>
> #        </layer>    
> #    </searchitem>    
> #
> #  </searchlist> 
> 
> 
> but then nothing appears. Only I found this sample code to create a search
> type "options" on web of p.mapper but I do not understand some parameters. 
> i dont know the meaning of "ms" in connection type because in search.php
> only there are three types:db, dbase, csv,inline.
> I dont know if the word "mslayer" in the second code is fixed or is
> related to the type of connection, for example "ms".
> 
> The connection to my shape file is direct and not a postgis.
> 
> I need to configure the search in order to continue developing my web
> visor with pamapper.
> 
> Thanks for advance.
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-Parameters-of-xml-search-file-tf4902142.html#a14104158
Sent from the pmapper users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to