Hi! Since yesterday, I've been wondering about the layers/records handling from a WMSCapabilitiesStore.
In fact, I achieved to use WMSCapabilitiesStore and WFSCapabilitiesStore thanks to an OpenGeo tutorial. But they are still some problems: I'd like to use a field called "keywords" provided by my GeoServer. It works for the WFSCapabilitiesStore, but not for the WMSCapabilitiesStore! Below you will find a sample of my code: var store = new GeoExt.data.WFSCapabilitiesStore({ url: "/geoserver/ows?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities&namespace=wfs", protocolOptions: {version: "1.1.0"}, fields: ["name","title","abstract","keywords"], autoLoad: true }); var grid = new Ext.grid.GridPanel({ title: "Available WMS Layers", renderTo: document.body, region: "north", viewConfig: {forceFit: true}, store: store, columns: [ {header: "Name", dataIndex: "name", sortable: true}, {header: "Title", dataIndex: "title", sortable: true}, {header: "Abstract", dataIndex: "abstract"}, {header: "Keywords", dataIndex: "keywords"} ] }); The same rearranged code for WMSCapabilitiesStore doesn't work: in my gridPanel, it's written "[object Object]". In fact, I would like to understand how this LayerStore type works. I tried many things to extract a layer from this kind of store, but I didn't achieve. Could someone explain me how a WMSCapabilitiesStore is configured and how it works? In fact, I would like to order my layers according to their keyword field in a LayerTree. I'm lost between the different concepts "records", "fields", "dataIndex", etc.! Geoffrey -- Using Opera's revolutionary email client: http://www.opera.com/mail/ _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users