hi Salvador for make the option works you have to make a query like this:
 <searchitem name="Parroquias" description="Planteles x Parroquia">
        <layer type="postgis" name="Escuelas">
            <field type="s" name="parroqui_1" description="Parroquias"
wildcard="0">
                    <definition type="options" connectiontype="db"
sort="asc">
                         <dsn
encoding="UTF-8">pgsql://user:[EMAIL PROTECTED]/database</dsn>
<sql>SELECT DISTINCT parroquia,parroquia FROM planteles_cot where parroquia
is NOT NULL ORDER BY parroquia</sql>
        
<events>onchange="resetSuggestCache();$('#pmsfld_parroqui_1').val('')"</events>
                    </definition> 
            </field> 
        </layer>
    </searchitem>">
              
  as you see you have to use towo time the field to show it into the combo
box 
I hope it's help you 

-- 
View this message in context: 
http://www.nabble.com/option-and-operator-definition-in-xml-tp17491766p17494368.html
Sent from the pmapper users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to