<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt">I have used the following code and get a good result, but the exact string has to be entered. I know I need to somehow user a filter with LIKE but donīt know where I should code this..Definate lack of examples.<br><br>could anone tell me how I would basically use the LIKE filter and put the results into a grid?<br><br>yours,<br><br>Rob<br><br>// search<br>var formPanel = new GeoExt.form.FormPanel({<br>// renderTo: "formpanel",<br> protocol: new OpenLayers.Protocol.WFS({<br><span> url: "<a target="_blank" href="http://MyDomain:8080/geoserver/wfs">http://MyDomain:8080/geoserver/wfs</a>",</span><br> featureType: "wea_wgs84",<br><span>
featureNS: "<a target="_blank" href="http://MyDomain/postgis">http://MyDomain/postgis</a>"</span><br> }),<br> region: "west",<br><br> width: 400,<br> border: false,<br> items: [{<br> xtype: "textfield",<br> name: "bez",<br> value: "WF"<br> }, {<br> xtype: "textfield",<br> name: "standort",<br> value: "Asse"<br> }],<br> listeners: {<br> actioncomplete: function(form, action) {<br> // this listener triggers when the search
request<br> // is complete, the OpenLayers.Protocol.Response<br> // resulting from the request is available<br> // in "action.response"<br> <br> }<br> }<br>});<br><br>formPanel.addButton({<br> text: "search",<br> handler: function() {<br> this.search();<br> },<br> scope: formPanel<br>});<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span
style="font-weight: bold;">Von:</span></b> Robert Buckley <robertdbuckley@yahoo.com><br><b><span style="font-weight: bold;">An:</span></b> users@geoext.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Dienstag, den 22. März 2011, 8:10:23 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> [Users] Search tool in Geoext App<br></font><br><div style="font-family: times new roman,new york,times,serif; font-size: 10pt; color: rgb(64, 0, 127);">Hi,<br><br>I am building a series of basic webviewers which will basically just load wms intoa viewport and offer the user navigation tools, a quick zoom combobox, legend panel and contents panel.<br>I have come this far and it is now been asked if I can build a simple search mechanism. <br>I would like to offer the user a combobox to first pick the layer, then the field, then then either enter a word or get a list of entries coming from that field.<br><br>I believe I have seen
something similar in other apps and that it is possible to build something like this, but I donīt know where to find any code examples.<br><br>Is it true that this search would have to be based on wfs and that a search on wms isnīt possible?<br>Could anyone offer me any help regarding this search
mechanism?<br><br>thanks for any tips,<br><br>Robert<br><div><br></div>
</div><br></div></div>
</div><br></body></html>