<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jose,<br>
<br>
just a little hint: Maybe the problem is that you pass the same id
to your windows. This could cause some issues.<br>
<br>
Best regards,<br>
Chris <br>
<br>
Am 08.08.2012 12:56, schrieb <a class="moz-txt-link-abbreviated" href="mailto:jcortega@dipalme.org">jcortega@dipalme.org</a>:<br>
</div>
<blockquote
cite="mid:OF7525AC7B.BD6FA3E1-ONC1257A54.003A00BB-C1257A54.003C1902@dipalme.org"
type="cite"><font face="sans-serif" size="2">Hi,</font>
<br>
<font face="sans-serif" size="2"> </font>
<form action="http://translate.google.es/?hl=es&tab=wT">
<br>
<font size="3">When I add one second ext gridPanel (gridPanelrs)
based
on GeoExt.data.FeatureStore in a new window does not work for
the
first gridPanel (gridPanelmu), exactly it dissapears the data
of
the first grdPanel</font>
<br>
<font size="3">My code is:</font>
<br>
<br>
<font size="3">storemu = new GeoExt.data.FeatureStore({</font>
<br>
<font size="3">
layer: vectorLayer,</font>
<br>
<font size="3">
fields: fieldsmu,</font>
<br>
<font size="3">
proxy: new GeoExt.data.ProtocolProxy({</font>
<br>
<font size="3">
protocol: new OpenLayers.Protocol.HTTP({</font>
<br>
<font size="3">
url:
"app/lib/app/postgis_geojson.php?geotable=eiel_map_municipal.municipios_sde&orderby=nombre",</font><br>
<font size="3">
format: new OpenLayers.Format.GeoJSON()</font>
<br>
<font size="3">
})</font>
<br>
<font size="3">
})</font>
<br>
<font size="3">
</font>
<br>
<font size="3">
//
autoLoad: true</font>
<br>
<font size="3">
});</font>
<br>
<font size="3"> </font>
<br>
<font size="3">
storemu.load({</font>
<br>
<font size="3">
params: {municipio:
municipioseleccionado, order_by:ordenapor}</font>
<br>
<font size="3">
});</font>
<br>
<font size="3">
</font>
<br>
<font size="3"> var filtemu = new
Ext.ux.grid.GridFilters({filters:columnsmu});</font>
<br>
<font size="3">
var selectormu = new GeoExt.grid.FeatureSelectionModel();</font>
<br>
<font size="3"> var gridPanelmu =
new Ext.grid.GridPanel({</font>
<br>
<font size="3"> ref: "gridPanelmu",</font>
<br>
<font size="3">
id: "gridPanelmu",</font>
<br>
<font size="3">
title: 'municipios',</font>
<br>
<font size="3"> region: "east",</font>
<br>
<font size="3"> store: storemu,</font>
<br>
<font size="3">
plugins: filtemu,</font>
<br>
<font size="3"> // store: ['abla','04001'],</font>
<br>
<font size="3">
stripeRows: true,</font>
<br>
<font size="3"> tbar: [],</font>
<br>
<font size="3">
width: 400,</font>
<br>
<font size="3">
height: 600,</font>
<br>
<font size="3"> columns: columnsmu,</font>
<br>
<font size="3"> sm: selectormu </font>
<br>
<font size="3"> });</font>
<br>
<br>
<font size="3">var myWinalfamu = new Ext.Window({
</font>
<br>
<font size="3">
id : capa,</font>
<br>
<font size="3">
height : 400,</font>
<br>
<font size="3">
width : 500,</font>
<br>
<font size="3">
closeAction: "close",
// hide esto evita un error al abrir por segunda vez la
ventana "me.dom
error"</font>
<br>
<font size="3">
resizable: true,</font>
<br>
<font size="3">
items : [gridPanelmu]//
los corchetes tiene que estar porque si no, no salen los datos</font>
<br>
<font size="3">
});
</font>
<br>
<font size="3"> </font>
<br>
<font size="3"> myWinalfamu.show();
</font>
<br>
<br>
<br>
<font size="3">The second store, gridPanel and window is
practical the
same code but changing the names:</font>
<br>
<br>
<font size="3">storers = new GeoExt.data.FeatureStore({</font>
<br>
<font size="3">
layer: vectorLayer,</font>
<br>
<font size="3">
fields: fieldsrs,</font>
<br>
<font size="3">
proxy: new GeoExt.data.ProtocolProxy({</font>
<br>
<font size="3">
protocol: new OpenLayers.Protocol.HTTP({</font>
<br>
<font size="3">
url:
"app/lib/app/postgis_geojson.php?geotable=eiel_map_municipal.ramal_saneamiento&orderby=ord_tramo&municipio=municipioseleccionado",</font><br>
<font size="3">
format: new OpenLayers.Format.GeoJSON()</font>
<br>
<font size="3">
})</font>
<br>
<font size="3">
})</font>
<br>
<font size="3">
</font>
<br>
<font size="3">
//
autoLoad: true</font>
<br>
<font size="3">
});</font>
<br>
<font size="3"> </font>
<br>
<font size="3">
storers.load({</font>
<br>
<font size="3">
params: {municipio:
municipioseleccionado, order_by:ordenapor}</font>
<br>
<font size="3">
});</font>
<br>
<font size="3"> </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> var filters = new
Ext.ux.grid.GridFilters({filters:columnsrs});</font>
<br>
<font size="3"> var selectorrs = new
GeoExt.grid.FeatureSelectionModel();</font>
<br>
<font size="3"> var gridPanelrs =
new Ext.grid.GridPanel({</font>
<br>
<font size="3"> ref: "gridPanelrs",</font>
<br>
<font size="3">
id: "gridPanelrs",</font>
<br>
<font size="3">
title: 'redes_saneamiento',</font>
<br>
<font size="3"> region: "east",</font>
<br>
<font size="3"> store: storers,</font>
<br>
<font size="3">
plugins: filters,</font>
<br>
<font size="3"> // store: ['abla','04001'],</font>
<br>
<font size="3">
stripeRows: true,</font>
<br>
<font size="3"> tbar: [],</font>
<br>
<font size="3">
width: 400,</font>
<br>
<font size="3">
height: 600,</font>
<br>
<font size="3"> columns: columnsrs,</font>
<br>
<font size="3"> sm: selectorrs</font>
<br>
<font size="3"> });</font>
<br>
<br>
<font size="3">var myWinalfars = new Ext.Window({
</font>
<br>
<font size="3">
id : capa,</font>
<br>
<font size="3">
height : 400,</font>
<br>
<font size="3">
width : 500,</font>
<br>
<font size="3">
closeAction: "close",
// hide esto evita un error al abrir por segunda vez la
ventana "me.dom
error"</font>
<br>
<font size="3">
resizable: true,</font>
<br>
<font size="3">
items : [gridPanelrs]//
los corchetes tiene que estar porque si no, no salen los datos</font>
<br>
<font size="3">
});
</font>
<br>
<font size="3"> </font>
<br>
<font size="3"> myWinalfars.show();</font>
<br>
<br>
<br>
</form>
<br>
<br>
<font face="sans-serif" size="2">Best regards,</font>
<br>
<font face="sans-serif" size="2">Jose Carlos</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>