Hello Armin,

Outstanding!! This way everything works as I intended! In fact, this is not the 
best way to work with the dropdown search, but in this case it allows me to 
search all points that lie in a given administrative unit. The points are 
introduced with Digitizepoints Plugin and administrative division to which they 
belong is automatically obtained through a trigger in PostGIS.

Thank you very much Armin!

Best regards,
Pedro Venâncio







----- Original Message -----
From: Armin Burger


this is an old reference to the old config file type. Now it's 
config_whatsoever.xml (not *.ini any more). I will need to update the 
docs ;-) the default value of the release versions is 3 and produces 
verbose debug info.

I'm not sure if the docs make it clear, but for OPTIONS the first field 
from the query is used for the (not visible) "value=..." element of the 
<option>, the second field for the *displayed* text. Between both there 
should be a 1-to-1 relation, otherwise it makes not much sense to me.

In your case you have multiple gid's for the same name, so a distinct on 
both returns the unique combinations of both, probably not what you 
want. I mainly defined it like that so that the search can be run on an 
integer field while the display in the browser is the corresponding 
text. In your case I would define it like

<field type="s" name="name"
     ...
     <sql>SELECT DISTINCT name, name FROM ...

which will create HTML code like

<option value="Rome">Rome</option>

and it will search the DB table for the "name" field.

Armin



------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to