I am trying to export vector features (current view) as a grid, something like: http://workshops.opengeo.org/geoext/wfs/grid.html
so far layer features are not being retrieved.. I got empty grid in the window. would anyone take a look and let me know if I miss something ?
gridPanel = new Ext.grid.GridPanel({
title: "Feature Grid",
store: new GeoExt.data.FeatureStore({
fields: [
{name: "id", type: "int"},
{name: "name", type: "string"}
],
proxy: new GeoExt.data.proxy.Protocol({
protocol: new OpenLayers.Protocol.WFS({
url: "http://IP/geoserver/wfs",
featureType: "myLayer",
featureNS: "http://mapmap.org",
srsName: "EPSG:3857",
version: "1.1.0"
})
}),
autoLoad: true
}),
sm: new GeoExt.selection.FeatureModel(),
width: 320,
columns: [
{header: "id", dataIndex: "id"},
{header: "name", dataIndex: "name"}
]
});
//window to display grid
var gridWindow = new Ext.Window({
items: [
gridPanel
]
}).show();