[Users] Ext.grid.GridPanel and GeoExt.data.WMSCapabilitiesStore reload data
Mario Nuñez Jimenez
mario.nunez at atosresearch.eu
Tue May 25 11:05:23 CEST 2010
It worked perfectly,
This one:
store.proxy.setApi(Ext.data.Api.actions.read, url);
was the key to success.
Thank you very much.
Kina regards.
Mario.
-----Original Message-----
From: Alexandre Dube [mailto:adube at mapgears.com]
Sent: viernes, 21 de mayo de 2010 14:17
To: Mario Nuñez Jimenez
Cc: Eric Lemoine; users at geoext.org
Subject: Re: [Users] Ext.grid.GridPanel and GeoExt.data.WMSCapabilitiesStore reload data
Hi Mario,
Here's a way of doing it :
store.proxy.setUrl(url);
store.proxy.setApi(Ext.data.Api.actions.read, url);
store.load();
I had the same problem while developing a WMSBrowser widget :
[example]
http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserInWindowExample.html
[source]
http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
Regards,
Alexandre
Mario Nuñez Jimenez wrote:
> I already did it but not in a good way.
> I made a new store and a new gris, then I set the store into the gris and then I have to manage with refreshing the panel containing the gris but I dont want to do it this way.
> What I am trying is to update the store only changing the url and also refresh the gris to show the new data... is not posible?
>
> -----Original Message-----
> From: Eric Lemoine [mailto:eric.lemoine at camptocamp.com]
> Sent: viernes, 21 de mayo de 2010 13:15
> To: Mario Nuñez Jimenez
> Cc: users at geoext.org
> Subject: Re: [Users] Ext.grid.GridPanel and GeoExt.data.WMSCapabilitiesStore reload data
>
> 2010/5/21 Mario Nuñez Jimenez <mario.nunez at atosresearch.eu>:
>
>> Hello list,
>>
>> I am using a gridPanel populated with a GeoExt.data.WMSCapabilitiesStore and
>> it is already working, the store is configured with a WMS URL but I want to
>> change the url taking it from a form and have the grid updated with the new
>> WMS capabilities information but I dont know how to do it, may anyone help
>> with this?
>>
>
> Try setting a new URL in the proxy used in the wms caps store:
>
> store.proxy.setUrl(newUrl, true);
> store.load();
>
>
>>
>> Now I am creating a new store and loading it in my gridPanel but I cant
>> refresh or update it in order to view the capabilities data… my grid doesnt
>> update with the new data.
>>
>
> Yes, I'm not sure you can change a grid's store.
>
>
> Hope it helps,
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
More information about the Users
mailing list