Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoExt2 FormPanel Wfs Filtering "OR" issue #320

Open
haktanaydin opened this issue Dec 4, 2014 · 1 comment
Open

GeoExt2 FormPanel Wfs Filtering "OR" issue #320

haktanaydin opened this issue Dec 4, 2014 · 1 comment

Comments

@haktanaydin
Copy link

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: "name__like",
value: "mont"
}, {
xtype: "textfield",
name: "elevation__ge",
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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants