<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi list, <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have got an Ext.grid.GridPanel using a Geoext.data.FeatureStore as its store. The store uses a GeoExt.data.ProtocolProxy to get features from a WFS. On that store I set the featureFilter-configOption in order to only
display (and request) a subset of the available features in the grid (for instance only those within a given geometry, or with a specific id; for now, I am working with a simple comparison filter).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, the filter is not getting evaluated and all features are requested and show up in the grid. I would be very glad, if someone could point me to what I am missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is the code for the grid panel:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">gridPanel = new Ext.grid.GridPanel({</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">ref:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">'featuregrid'</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> title:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">'Tabellenansicht Parkhäuser'</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">region:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">'north'</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> height: 200,</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> sm: new GeoExt.grid.FeatureSelectionModel(),</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> store: new GeoExt.data.FeatureStore({
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> fields: [</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {name:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"name"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, type:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"string"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {name:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"art"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, type:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"string"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {name:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"frei"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, type:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"string"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {name:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"received"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, type:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"string"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">}</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> ],
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> proxy: new GeoExt.data.ProtocolProxy({</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> protocol: new OpenLayers.Protocol.WFS({</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> url:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"http://gateway.hamburg.de/OGCFassade/Test_HH_WFS_Fachdaten.aspx"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">version:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"1.1.0"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> featureType:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"verkehr_parkhaeuser"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> featureNS:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"http://www.deegree.org/app"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">srsName:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"EPSG:25832"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> })</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> }),</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> featureFilter: new OpenLayers.Filter.Comparison({</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> type: OpenLayers.Filter.Comparison.EQUAL_TO,</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> property:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"name"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> value:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"Alsterhaus"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> }),</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> autoLoad: true </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> }),</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> columns: [</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {header:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"name"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, dataIndex:
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"name"</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">{header:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"Art"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, dataIndex:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"art"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {header:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"Freie Stellplätze"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, dataIndex:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"frei"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">},</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> {header:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"Aktualität"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">, dataIndex:
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF;background:white;mso-highlight:white">"received"</span><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white">}</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> ]</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> });</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You can also find an online-version at <a href="http://geoportal-hamburg.de/verkehr2-dev/index2.html">
http://geoportal-hamburg.de/verkehr2-dev/index2.html</a> (the above code is in app.js)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards and thanks already,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sebastian<o:p></o:p></span></p>
</div>
</body>
</html>