OK, i solved the problem. i had to change the event tag and now everything
works.
<events>onchange="$('#pmsfld_parcela').val('').flushCache()"</events>
oh, and sorry for the first mail i have sended it accidentally.
Miha
________________________________
From: Miha Požauko <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Sunday, September 11, 2011 2:19 PM
Subject: Emptying suggest cache
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
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users