[Users] Wild card for search
Ma. Loricar Arboleda
lorie.arboleda at gmail.com
Mon Jul 16 05:11:10 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120716/391c0bf0/attachment.htm
More information about the Users
mailing list