<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Good day everyone,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I am using the formPanel to search for a feature in one of my map layers. I would like to use the "LIKE" function for the search but then it doesn't seem to work.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
I've read somewhere (I think it was an archive for this list) that you have to use a wildcard for it to work. But I'm not so sure of how to use it.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Here is my code for that:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>formPanel = new GeoExt.form.FormPanel({</div><div><span style="white-space:pre-wrap">                        </span>title: "Search for Street",</div>
<div> width: 300,</div><div> height: 200,</div><div> region: "west", </div><div> protocol: protocol,</div><div> items: [{</div><div> xtype: "textfield",</div>
<div> name: "ROAD_NAME__like",</div><div> fieldLabel: "Road Name"</div><div> }],</div><div> listeners: { </div><div><span style="white-space:pre-wrap">                                        </span>actioncomplete: function(form, action) {</div>
<div><span style="white-space:pre-wrap">                                        </span>features = action.response.features;</div><div><span style="white-space:pre-wrap">                                        </span>store.loadData(features);</div><div><span style="white-space:pre-wrap">                                        </span>vm=map.getLayersByName("Search Results");</div>
<div><span style="white-space:pre-wrap">                                        </span>if(vm.length==0){</div><div><span style="white-space:pre-wrap">                                                </span>vecLayer = new OpenLayers.Layer.Vector("Search Results");</div><div><span style="white-space:pre-wrap">                                                </span>map.addLayer(vecLayer);</div>
<div><span style="white-space:pre-wrap">                                                </span>store.bind(vecLayer);</div><div><span style="white-space:pre-wrap">                                                </span>//select.bind(vecLayer);</div><div><span style="white-space:pre-wrap">                                        </span>}</div>
<div><span style="white-space:pre-wrap">                                </span>}</div><div><span style="white-space:pre-wrap">                        </span>}</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thanks in advance,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Lorie Arboleda</div>