<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({        &nbsp;</pre><pre>title: "Feature Grid",        &nbsp;</pre><pre>store: new GeoExt.data.FeatureStore({        &nbsp;</pre><pre>fields: [           &nbsp;</pre><pre> {name: "id",&nbsp;<span style="font-family: Tahoma; font-size: 10pt; ">type: "int"},           &nbsp;</span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; "> {name: "name", type: "string"}         ],  &nbsp;</span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; ">    proxy: new GeoExt.data.proxy.Protocol({    &nbsp;</span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; ">    protocol: new OpenLayers.Protocol.WFS({      &nbsp;</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; "> &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">      featureType: "myLayer",        &nbsp;</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; ">   &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">      srsName: "EPSG:3857",   &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">     version: "1.1.0"             })   &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">     }),             &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">   autoLoad: true    &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">            }),         &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">       sm: new GeoExt.selection.FeatureModel(),  &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">      width: 320,  &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">  columns: [         {header: "id", dataIndex: "id"},  &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">                         {header: "name", dataIndex: "name"}     ]  &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">  });      &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">  //window to display grid   &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">     var gridWindow = new Ext.Window({      &nbsp;</span></pre><pre><span style="font-size: 10pt; font-family: Tahoma; ">        items: [    &nbsp;</span></pre><pre><span style="font-family: Tahoma; font-size: 10pt; ">               gridPanel       ]         &nbsp;</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&nbsp;vector layer&nbsp;features&nbsp;to a grid like here:&nbsp;<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&nbsp;</font>result from geoserver<font size="2">&nbsp;in firebug. all features are&nbsp;retrieved but nothing is&nbsp;displaying&nbsp;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)">&nbsp; &nbsp; &nbsp; &nbsp; gridPanel = new Ext.grid.GridPanel({&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; title: "Feature Grid",&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; store: new GeoExt.data.FeatureStore({&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; fields: [&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {name: "id", type: "int"},&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {name: "name", type: "string"}&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; ],&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy: new GeoExt.data.proxy.Protocol({&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protocol: new OpenLayers.Protocol.WFS({&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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)">",&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; featureType: "myLayer",&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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)">",&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; srsName: "EPSG:3857",&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; version: "1.1.0"&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; }),&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; autoLoad: true&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }),&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm: new GeoExt.selection.FeatureModel(),&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; width: 320,&nbsp;</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)">&nbsp; &nbsp; columns: [&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; {header: "id", dataIndex: "id"},&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; {header: "name", dataIndex: "name"}&nbsp;</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)">&nbsp; &nbsp; ]&nbsp;</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)">&nbsp; &nbsp; });&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><b style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255)">//window to display grid&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; var gridWindow = new Ext.Window({&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; items: [&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridPanel&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]&nbsp;</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)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }).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>