On 04/01/2010 04:40, i-boy wrote:
> Hi lists,
>
>
> I defined a search item like this:
>
> ----------------------------------------------------------
> <searchitem name="Dist" description="District">
> ___<layer type="shape" name="HN_District">
> ______<field type="s" name="D_Name" description="ID0" wildcard="0" />
> ______<field type="s" name="D_Name" description="ID1" wildcard="0" />
> ___</layer>
> </searchitem>
> ----------------------------------------------------------
>
> and changed in " search.php => getSearchParameters() " operator "AND" to
> "OR"
>
> it works fine when search fields in different DB column but when use same
> column name (as above), it only found the last field.
>
>
> Can I edit some file to make it (search multi item in one database column)
> work ?
it should work defining an alias for the 2nd field, like
<field type="s" name="D_Name" alias="D_Name_1" description="ID1"
wildcard="0" />
If it works fine please update the docs in the Trac system (use the
'Register' link to create an account).
armin
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users