<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div><b>Sorry, the code again :</b></div><div><b><br></b></div>[CODE]<div><pre>gridPanel = new Ext.grid.GridPanel({ </pre><pre>title: "Feature Grid", </pre><pre>store: new GeoExt.data.FeatureStore({ </pre><pre>fields: [ </pre><pre> {name: "id", <span style="font-family: Tahoma; font-size: 10pt; ">type: "int"}, </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> {name: "name", type: "string"} ], </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> proxy: new GeoExt.data.proxy.Protocol({ </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> protocol: new OpenLayers.Protocol.WFS({ </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> url: "</span><a href="http://ip/geoserver/wfs%22," style="font-family: Tahoma; font-size: 10pt; ">http://IP/geoserver/wfs",</a><span style="font-family: Tahoma; font-size: 10pt; "> </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> featureType: "myLayer", </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> featureNS: "</span><a href="http://mapmap.org%22%2C/" style="font-size: 10pt; font-family: Tahoma; ">http://mapmap.org",</a><span style="font-size: 10pt; font-family: Tahoma; "> </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> srsName: "EPSG:3857", </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> version: "1.1.0" }) </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> }), </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> autoLoad: true </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> }), </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> sm: new GeoExt.selection.FeatureModel(), </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> width: 320, </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> columns: [ {header: "id", dataIndex: "id"}, </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> {header: "name", dataIndex: "name"} ] </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> }); </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> //window to display grid </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> var gridWindow = new Ext.Window({ </span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; "> items: [ </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> gridPanel ] </span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> }).show();</span></pre><pre>                                            </pre></div><div>[/CODE]<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: oo_o2_oo@hotmail.com<br>To: users@geoext.org<br>Date: Fri, 28 Sep 2012 14:25:01 +0000<br>Subject: [Users] Synchronized Grid and WFS Features - How to export to grid ?<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr">
Hi<div><br></div><div><b>I am using GeoExt2 with OpenLayers. I am trying to Export my vector layer features to a grid like here: <a href="http://workshops.opengeo.org/geoext/wfs/grid.html" style="font-size:10pt" target="_blank">http://workshops.opengeo.org/geoext/wfs/grid.html</a></b></div><div><b><font size="2">but I keep getting an empty grid. I see the right </font>result from geoserver<font size="2"> in firebug. all features are retrieved but nothing is displaying in the grid.</font></b></div><div><b style="font-size:10pt;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><br></b></div><div><b style="font-size:10pt;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)">would anyone take a look and let me know if I miss something ?</b></div><div><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> gridPanel = new Ext.grid.GridPanel({ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> title: "Feature Grid", </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> store: new GeoExt.data.FeatureStore({ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> fields: [ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> {name: "id", type: "int"}, </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> {name: "name", type: "string"} </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> ], </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> proxy: new GeoExt.data.proxy.Protocol({ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> protocol: new OpenLayers.Protocol.WFS({ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> url: "</span><a href="http://ip/geoserver/wfs" rel="nofollow" style="color:rgb(85, 26, 139);font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)" target="_blank">http://IP/geoserver/wfs</a><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)">", </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> featureType: "myLayer", </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> featureNS: "</span><a href="http://mapmap.org/" rel="nofollow" style="color:rgb(85, 26, 139);font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)" target="_blank">http://mapmap.org</a><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)">", </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> srsName: "EPSG:3857", </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> version: "1.1.0" </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> }) </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> }), </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> autoLoad: true </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> }), </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> sm: new GeoExt.selection.FeatureModel(), </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> width: 320, </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> columns: [ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> {header: "id", dataIndex: "id"}, </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> {header: "name", dataIndex: "name"} </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> ] </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> }); </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> </span><b style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)">//window to display grid </b><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> var gridWindow = new Ext.Window({ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> items: [ </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> gridPanel </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> ] </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)"> }).show();</span>
</div>                                            </div>
<br>_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users</div></div>                                            </div></body>
</html>