Alessandro

you discovered some secret possibilities of p.mapper 3.1 ;-) The search 
is completely re-written and offers new functions, none of them 
documented so far. They are not fully tested in real applications, just 
in a separate testing environment. And some changes due to 'fine tuning' 
might appear.

What you ask for is possible with the current code, one has to specify 
the dBase file (usually the dbf part of a shapefile), it can also be a 
text or database to be used for the suggest data (similar for select 
options) and it supports regex's. I will set up a simple example in due 
time, so one can take this as a base. In order to have it running 
correctly and avoiding errors for wrong settings, an XML schema would 
make sense, but that's even farer away...

armin

Alessandro Pasotti wrote:
> Hello,
> 
> I noticed a new suggest functionality in search.php, I didn't understand yet 
> how it works, but it seems that values can be retrieved from various sources.
> 
> Is it possible to retrieve values reading unique values of a column in the 
> layer ?
> 
> If not, do you think it make sense to implement it?
> 
> I'm thinking about adding 
>       
>       /**
>       * Read unique values from a given layer column
>       */
>       function getOptionsFromLayerColumn($layer, $column, $encoding, $sort){
>       }
> 
> in search.php.
> 
> This would require passing a reference to the actual map, that is currently 
> missing from class XML_search.
> 
> Any hint?
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to