I put a sample definition of the suggest under

http://svn.pmapper.net/trac/browser/pmapper/trunk/config/default

uncomment the last part in search.xml, you might need to adapt the path 
under <dataroot>, it can be an absolute path or relative to the XML 
file. In the <searchitem> you can use this as the parent path (using the 
'$') or specify the path also as absolute (tag <dbasefile>).

Note that the search returns no result for features not displayed on the 
map (because eg. missing class definition), but they appear in the 
suggest. I know this could likely be overcome using a generic Mapscript 
definition. I noticed that for the cities layer, so I added the missing 
class.

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