Dear List,

i need help with programming of a searchPanel. I tried this tutorial http://ian01.geog.psu.edu/geoserver_docs/apps/gaz/together.html . I adjusted it to my project, but Firebug shows me an error and i don´t know what it means:


Firebug error message:

GeoExt.form.toFilter.FILTER_MAP is undefined


        

(type = GeoExt.form.toFilter.FILTER_MAP[s[1]]) !== undefined) {
form.js (Zeile 39)


Can anyoney explain me what this errormessage means? how can I fix this error?

Here are some informations about my system:

OpenLayers 2.11, GeoExt v1.1, ExtJS 3.4.0
Linux ubtuntu 12.04,
WebServer Apache2
GeoServer 2.4.0 with tomcat6

Here is my javascript-snippet:

var features = new Array();

var vec = new OpenLayers.Layer.Vector("vec");

var protocol = new OpenLayers.Protocol.WFS({
url: 'http://localhost:8080/geoserver/cite/ows',
version: "1.1.0",
featurePrefix: "cite",
featureType: "layer",
featureNS: "http://www.opengeospatial.net/cite";,
geometryName: "the_geom",
srsName: "EPSG:25833"
});

var formPanel = new GeoExt.form.FormPanel({
height: 100,
region: "north",
protocol: protocol,
items: [{
xtype: "textfield",
name: "nutzung_na__eq",
value: "Verkehr",
fieldLabel: "Nutzungsart"
}],
listeners: {
actioncomplete: function(form, action){
features = action.response.features;
store.loadData(features);
}
}
});
formPanel.addButton({
text: "Suche",
handler: function() {
this.search();
},
scope: formPanel
});

var cols = [
{name: "gemarkung", type: "string"},
{name: "flur_id", type: "string"},
{name: "fs_nr", type: "string"},
{name: "text", type: "string"},
{name: "nutzung_na", type: "string"},
{name: "Name", type: "string"},
{name: "Vorname", type: "string"},
];

var reader = new GeoExt.data.FeatureReader({},cols);

var store = new GeoExt.data.FeatureStore({
reader: reader,
fields: cols,
autoLoad: false
});

var gridPanel = new Ext.grid.GridPanel({
title: "Grid Panel",
height: 500,
region: "east",
autoExpandColumn: true,
store: store,
columns: [
{header: "Flur", dataIndex: "flur_id"},
{header: "Flurstücksnummer", dataIndex: "fs_nr"},
{header: "Nutzungsart", dataIndex: "nutzung_na"},
{header: "Nutzungsart nach Kataster", dataIndex: "text"},
{header: "Name", dataIndex: "Name"},
{header: "Vorname", dataIndex: "Vorname"}
],
sm: new GeoExt.grid.FeatureSelectionModel()
});

var searchPanel = new Ext.Panel({
layout: "border",
items: [formPanel, gridPanel]
});

var accordionPanel = new Ext.Panel({
title: "Optionen",
region: 'west',
margins: '5 0 5 5',
width: 400,
split: true,
layout: 'accordion',
items: [layerTree, searchPanel]
});

//Das ganze Fenster des Programms erzeugen
viewPanel = new Ext.Viewport({
layout: "border",
items: [mapPanel, accordionPanel,formPanel, searchPanel]
});
mapPanel = Ext.getCmp("mappanel");

I hope you understand what I mean and can help me solve the problem.
Please excuse my bad english. ;)

Best Regards
Stephan


_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to