[Users] Synchronized Grid and WFS Features - How to export to grid ?

Drek .. oo_o2_oo at hotmail.com
Fri Sep 28 16:25:01 CEST 2012


Hi
I am using GeoExt2 with OpenLayers. I am trying to Export my vector layer features to a grid like here: http://workshops.opengeo.org/geoext/wfs/grid.htmlbut I keep getting an empty grid. I see the right result from geoserver in firebug. all features are retrieved but nothing is displaying in the grid.
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();
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120928/0235435c/attachment.htm 


More information about the Users mailing list