geoext / geoext2

GeoExt 2 — JavaScript Toolkit for Rich Web Mapping Applications
http://geoext.github.io/geoext2/
Other
142 stars 106 forks source link

GeoExt2 FormPanel Wfs Filtering "OR" issue #320

Open haktanaydin opened 9 years ago

haktanaydin commented 9 years ago

I'm using GeoExt2 FormPanel to make wfs request by filter. My structure like this. var formPanel = Ext.create('Ext.form.Panel', { renderTo: "formpanel", items: [{ xtype: "textfield", name: "namelike", value: "mont" }, { xtype: "textfield", name: "elevationge", value: "2000" }] }); When I create a filter, Wfs filter was generated like this "cond1 AND cond2 AND .." in wfs. I want to use AND and OR definition both of them. What should I do?

chrismayer commented 9 years ago

It seems that there are two undocumented config options for a GeoExt.form.action.Search :

logicalOp and wildcard

logicalOp can take either 'OpenLayers.Filter.Logical.AND' or 'OpenLayers.Filter.Logical.OR' as it is documented here on the method which is used internally to create the filter.