My GeoServer instance is running version 2.1.1 Hello, I am new guy to Geo server open layers and ext js,now i am trying to get wfs pagination when i set start index and count property.i saw that two property in open layers API.Correctly i don't know why these two property not working.Please tell any tips,i waiting for your reply thanks to all
wfsProtocol=new OpenLayers.Protocol.WFS({ url: 'http://localhost:8080/geoserver/wfs', featureType:layer, srsName: "EPSG:4326", version: '1.1.0', featureNS:"http://kcubeconsulting.com/geobrowser", featurePrefix: "VBL" }); wfsProtocol.read({ startIndex:20, count: 4, // maxFeatures: 15, callback: function(response) { feat = response.features; featureStore = new Ext.ux.data.PagingStore({ reader: new GeoExt.data.FeatureReader({}, [ {name: "state_name", type: "string"}, {name: "country_id", type: "int"} ]), totalProperty : 35, data: feat }); gridPanel = new Ext.grid.GridPanel({ store: featureStore, columns: [ { header: "State Name", width: 200, dataIndex: "state_name" }, { header: "Country Id", width: 100, dataIndex: "country_id" }, { header: "Zoom to feature", xtype:'actioncolumn', items: [{ icon:'locked.png', tooltip:'please click on this icon.', handler: function(grid, rowIndex, colIndex) { alert("lock"); } }] } ], stripeRows: true, // autoExpandColumn: 'company', height:350, width:600, title:'Array Grid', viewConfig: { forceFit: true } }); featureStore.loadData(feat); // gridPanel.store.load({params:{start: 0, limit: 4}}); var gridWindow = new Ext.Window({ items: [gridPanel] }).show(); } }); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-PAGINGNATION-tp6869122p6869122.html Sent from the GeoServer - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel