pag66 wrote:
>
>
> 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
>
>
Thanks for reply, but it don't works for me!
I need of a query like this:
<searchitem name="countries" description="Country">
<layer type="shape" name="countries">
<field type="s" name="ISO2_CODE" description="Country"
wildcard="2">
<definition type="options" connectiontype="ms" sort="asc"
firstoption="*">
<mslayer encoding="ISO-8859-1" keyfield="ISO2_CODE"
showfield="NAME" />
</definition>
</field>
</layer>
</searchitem>
and like:
<searchitem name="cities_population_1_operator" description="Cities
population">
<layer type="shape" name="cities10000eu">
<field type="n" name="POPULATION" description="Cities with
Population">
<definition type="operator">
<option name=">" value=">" />
<option name="=" value="=" />
<option name="<" value="<" />
</definition>
</field>
</layer>
</searchitem>
bye!
-----
Salvatore Larosa
GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)
--
View this message in context:
http://www.nabble.com/option-and-operator-definition-in-xml-tp17491766p17499717.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