Good day everyone,

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.

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.

Here is my code for that:

formPanel = new GeoExt.form.FormPanel({
title: "Search for Street",
            width: 300,
            height: 200,
            region: "west",
            protocol: protocol,
            items: [{
                xtype: "textfield",
                name: "ROAD_NAME__like",
                fieldLabel: "Road Name"
            }],
            listeners: {
actioncomplete: function(form, action) {
features = action.response.features;
store.loadData(features);
vm=map.getLayersByName("Search Results");
if(vm.length==0){
vecLayer = new OpenLayers.Layer.Vector("Search Results");
map.addLayer(vecLayer);
store.bind(vecLayer);
//select.bind(vecLayer);
}
}
}

Thanks in advance,
Lorie Arboleda
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to