<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR>
<DIV dir=ltr align=left><SPAN class=908365917-06072009><FONT face=Arial color=#0000ff size=2>That works!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=908365917-06072009><FONT face=Arial color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face="Poor Richard" size=2>Lak Krishnan</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Andreas Hocevar-2 (via Nabble)
[mailto:<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214550&i=0" target="_top" rel="nofollow">ml-user+68206-1629903874@...</a>] <BR><B>Sent:</B> Monday, July
06, 2009 1:57 PM<BR><B>To:</B> Krishnan, Lakshmanan<BR><B>Subject:</B> Re:
[OpenLayers-Users] Change filter on vector layer<BR></FONT><BR></DIV>
<DIV></DIV>Hi, <BR><BR>On Mon, Jul 6, 2009 at 6:58 PM, Lak <BR>Krishnan<<A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214518&i=0" target=_top rel="nofollow">lakshmanan.krishnan@...</A>> wrote: <BR>>
<BR>> That doesn't seem to work for me. <BR><BR>After setting your new
filter, try <BR><BR>impactlocptlayer.refresh({force: true}); <BR><BR>instead.
<BR><BR>Regards, <BR>Andreas. <BR>
<DIV class=shrinkable-quote><div class='shrinkable-quote'><BR>> <BR>> <BR>> Andreas Hocevar-2 wrote:
<BR>>> <BR>>> Hi, <BR>>> <BR>>> On Mon, Jul 6, 2009 at
4:38 PM, Lak <BR>>> Krishnan<<A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214518&i=1" target=_top rel="nofollow">lakshmanan.krishnan@...</A>> wrote: <BR>>>>
<BR>>>> I have a vector layer with a WFS protocol and filter as below
<BR>>>> <BR>>>> var impactlocptlayer = new
OpenLayers.Layer.Vector("Editable Features", { <BR>>>>
strategies: [new <BR>>>> OpenLayers.Strategy.BBOX(),
saveStrategy], <BR>>>>
projection: new <BR>>>>
OpenLayers.Projection("EPSG:2264"), <BR>>>>
filter: new
<BR>>>> OpenLayers.Filter.Comparison({type: <BR>>>>
OpenLayers.Filter.Comparison.EQUAL_TO,property: 'eventid',value: 4}),
<BR>>>>
extractAttributes: false, <BR>>>>
protocol: new <BR>>>> OpenLayers.Protocol.WFS({ <BR>>>>
<BR>>>> version: "1.1.0", <BR>>>> <BR>>>>
srsName: "EPSG:2264", <BR>>>> <BR>>>> url: "<A href="http://localhost/geoserver/wfs" target=_top rel="nofollow">http://localhost/geoserver/wfs</A>", <BR>>>>
<BR>>>> featureNS : "<A href="http://postgis.org" target=_top rel="nofollow">http://postgis.org</A>", <BR>>>>
<BR>>>> featureType: "impactlocpt", <BR>>>>
<BR>>>> geometryName: "the_geom", <BR>>>>
<BR>>>> schema: <BR>>>> "<A href="http://localhost/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=uasidata:impactlocpt" target=_top rel="nofollow">http://localhost/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=uasidata:impactlocpt</A>"
<BR>>>>
}), <BR>>>>
styleMap: wfsstyle
<BR>>>> }); <BR>>>> <BR>>>> How do I change "Filter"
later in my code? <BR>>> <BR>>> impactlocptlayer.filter = /* your
new filter here */; <BR>>> impactlocptlayer.refresh(); <BR>>>
<BR>>> Regards, <BR>>> Andreas. <BR>>> <BR>>>
<BR>>> <BR>>> -- <BR>>> Andreas Hocevar <BR>>> OpenGeo -
<A href="http://opengeo.org/" target=_top rel="nofollow">http://opengeo.org/</A><BR>>> Expert service straight from
the developers. <BR>>> _______________________________________________
<BR>>> Users mailing list <BR>>> <A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214518&i=2" target=_top rel="nofollow">Users@...</A> <BR>>> <A href="http://openlayers.org/mailman/listinfo/users" target=_top rel="nofollow">http://openlayers.org/mailman/listinfo/users</A><BR>>>
<BR>>> <BR>> <BR>> -- <BR>> View this message in context: <A href="http://n2.nabble.com/Change-filter-on-vector-layer-tp3213371p3214112.html" target=_top rel="nofollow">http://n2.nabble.com/Change-filter-on-vector-layer-tp3213371p3214112.html</A><BR>>
Sent from the OpenLayers Users mailing list archive at Nabble.com. <BR>>
_______________________________________________ <BR>> Users mailing list
<BR>> <A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214518&i=3" target=_top rel="nofollow">Users@...</A> <BR>> <A href="http://openlayers.org/mailman/listinfo/users" target=_top rel="nofollow">http://openlayers.org/mailman/listinfo/users</A><BR>>
</DIV></div><BR><BR>-- <BR>Andreas Hocevar <BR>OpenGeo - <A href="http://opengeo.org/" target=_top rel="nofollow">http://opengeo.org/</A><BR>Expert service straight from the
developers. <BR>_______________________________________________ <BR>Users
mailing list <BR><A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3214518&i=4" target=_top rel="nofollow">Users@...</A> <BR><A href="http://openlayers.org/mailman/listinfo/users" target=_top rel="nofollow">http://openlayers.org/mailman/listinfo/users</A><BR>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Change-filter-on-vector-layer-tp3213371p3214550.html">RE: [OpenLayers-Users] Change filter on vector layer</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>