Hey
my pmapper 4.2 with mapserver 6.0.1 is running on windows xp. in fact i used
ms4w 3.0.3 package to install everything i needed.
my problem is that i can't figure it out how to reset suggest cache and
emptying the suggest field in search.xml.
<searchlist version="1.0">
<dataroot>$</dataroot>
<searchitem name="DKN_MB_izbira" description="Isci DKN">
<layer type="postgis" name="DKN_MB">
<field type="s" name="sifko" description="Sifra k.o." wildcard="2">
<definition type="options" connectiontype="db" sort="asc">
<dsn encoding="UTF-8">pgsql://xxx:xxx@localhost/xxx</dsn>
<!-- Attention! Two fields to fill the options list: in this case: -->
<!-- cnty_id is the bound value for dependfldval, name_en is the display value
in the option list-->
<sql>SELECT DISTINCT sifko, sifko FROM kataster.dkn_mb WHERE sifko IS NOT NULL
ORDER BY sifko</sql>
<events>onchange="resetSuggestCache();$('#pmsfld_parcela').val('')"</events>
</definition>
</field>
<field type="s" name="parcela" description="Parcela" wildcard="2">
<definition type="suggest" connectiontype="db" sort="asc" dependfld="sifko">
<dsn encoding="UTF-8">pgsql://xxx:xxx@localhost/xxx</dsn>
<sql>SELECT DISTINCT parcela, parcela FROM kataster.dkn_mb WHERE parcela ~*
'^[search]' {and sifko = '[dependfldval]'} ORDER BY parcela</sql>
</definition>
</field>
</layer>
</searchitem>
</searchlist>
everything else works like it should.
any suggestions what could be the problem?
Miha
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users