<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 &quot;LIKE&quot;  function for the search but then it doesn&#39;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&#39;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&#39;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: &quot;Search for Street&quot;,</div>
<div>            width: 300,</div><div>            height: 200,</div><div>            region: &quot;west&quot;,            </div><div>            protocol: protocol,</div><div>            items: [{</div><div>                xtype: &quot;textfield&quot;,</div>
<div>                name: &quot;ROAD_NAME__like&quot;,</div><div>                fieldLabel: &quot;Road Name&quot;</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(&quot;Search Results&quot;);</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(&quot;Search Results&quot;);</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>