Good day everyone,<div><br></div><div>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>
<br></div><div>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><br></div><div>Here is my code for that:</div>
<div><br></div><div><div>formPanel = new GeoExt.form.FormPanel({</div><div><span class="Apple-tab-span" style="white-space:pre">                        </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 class="Apple-tab-span" style="white-space:pre">                                        </span>actioncomplete: function(form, action) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>features = action.response.features;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>store.loadData(features);</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>vm=map.getLayersByName("Search Results");</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>if(vm.length==0){</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>vecLayer = new OpenLayers.Layer.Vector("Search Results");</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span>map.addLayer(vecLayer);</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>store.bind(vecLayer);</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>//select.bind(vecLayer);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}</div>
</div><div><br></div><div>Thanks in advance,</div><div>Lorie Arboleda</div>