Hi,
try with
value: "true"
instead of
value: true
Regards,
Andreas.
On Nov 22, 2010, at 11:10 , Simone Dalmasso wrote:
> Hi list, I would like to ask features to geoserver while applying a
> comparison filter to the request. Here's my code:
>
> var sites = new OpenLayers.Layer.Vector('Sites',{
> styleMap: styleMap,
> strategies: [new OpenLayers.Strategy.Fixed()],
> projection: new
> OpenLayers.Projection("EPSG:4326"),
> protocol: new OpenLayers.Protocol.WFS({
> version: "1.1.0",
> srsName: "EPSG:4326",
> url: '/geoserver/wfs/',
> featureType: 'ftype',
> featurePrefix: "prefix"
> }),
> filter: new OpenLayers.Filter.Comparison({type:
> OpenLayers.Filter.Comparison.EQUAL_TO,property: 'approved',value: true})
> }
>
> The request seems to contain the tag ogc:filter but what i get back is not
> filtered data.
> Thanks for your help
>
> --
> Simone
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users