Here is the problem and the workaorund I used. If someone has an idea how to
solve it in some future version, I would be glad to try implementing it.

You can use  (from my example) y.NAME field for searching in
queryByAttribute function. The problem is that a period/dot in y.NAME gets
converted to an underscore by PHP. This is a documented behaviour so I
suppose it cannot be changed.

I have done a simple and stupid workaorund. I have used a custom word, for
which I know is unique in application, for example ABCDE istead of
period/dot in search.xml and then converted it back to period/dot in
query.php.

But this is not a general solution so if somone has another idea, let me
know

regards, dejan

> -----Original Message-----
> From: Gambin Dejan 
> Sent: Wednesday, August 22, 2007 8:16 AM
> To: '[email protected]'
> Subject: How to use joined field in search.xml
> 
> Hi,
> 
> I have a layer defined like:
> 
> LAYER
> NAME "x"
> ...
> CONNECTIONTYPE OGR
> CONNECTION "/data"
> DATA "SELECT x.ID, y.NAME FROM x LEFT JOIN y ON x.ID=y.ID"
> ...
> 
> I need to enable attribute searching for NAME field from 
> y.dbf file. How is this possible?
> 
> thanks
> 
> regards, dejan
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to