[OpenLayers-Users] Defining WFS-filter dynamically
Kai Behncke
Kai-Behncke at gmx.de
Thu Aug 13 08:52:26 EDT 2009
Dear users,
I try to set a WFS-filter dynamically.
I set an array with:
for(var i=0;i<y.length;i++){
the_filter= 'new OpenLayers.Filter.Comparison({type: OpenLayers.Filter.Comparison.EQUAL_TO,property: "objekt_id",value:'+y[i]+'}),';
filter_array.push(the_filter);
}
....the array is filled and I define:
if(filter_array.length > 1) {
var filter = new OpenLayers.Filter.Logical({
type: OpenLayers.Filter.Logical.OR,
filters: filter_array
});
} else {
var filter = filter_array[0];
}
filter_body = xml.write(filter_1_0.write(filter));
...but I always get an error:
uncaught exception: Filter writing not supported for rule type: undefined
Has anybody an idea what could be wrong?
Thank you very much, Kai
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Users
mailing list