[Users] wfs-t insert and update data
Andreas Hocevar
ahocevar at opengeo.org
Sat Mar 13 18:31:26 CET 2010
You have to make sure that your feature table has fields for the data
you want to save.
Once you have that, you vsn store your data in feature.attributes.
So if your feature table has a date field, and your javascript
variable with the date is also called date, you just do
feature.attributes.date = date;
Then you save your feature as in the examples I pointed you to.
Regards,
Andreas.
On 3/8/10, Mario Nuñez Jimenez <mario.nunez at atosresearch.eu> wrote:
> Mmmh,
> I think I didn't explained myself properly.
>
> What I am trying to do is not to save any geometry at a wfs layer.
> I am trying to save non geographical data I mean just a date, string or
> integer data that belongs to a feature. If I am not wrong a feature is
> composed by geometry data and non geographical data right?
>
> Well, I am already showing this non geographical information through a popup
> and also in through an EditorGridPanel.
>
> I want to do is to have data inserted and updated by using both ways
> (FormPanel inside a popup and also an EditorGridPanel with a FeatureStore)
> but I don’t know how this could be achieved... the only thing is that I have
> a geoserver wfs-t and I am wondering if this wfs-t would do the job...
>
> So it could be done using the wfs-t? how?
>
> Thank you in advance and sorry for the bad explanation...
> Kind regards.
> Mario.
>
> -----Original Message-----
> From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
> Of Andreas Hocevar
> Sent: lunes, 08 de marzo de 2010 18:09
> To: users at geoext.org
> Subject: Re: [Users] wfs-t insert and update data
>
> On 2010-03-08 17:40, Mario Nuñez Jimenez wrote:
>>
>> Hello list,
>>
>> I have no idea so I decided to ask alter searching with no result…
>>
>> I am using:
>>
>>
>>
>> GeoExt.data.FeatureStore
>>
>>
>>
>> And also:
>>
>>
>>
>> GeoExt.form.FormPanel
>>
>>
>>
>> I need to know how to insert and update data in my postgres database
>> using those interface elements.
>>
>> Any tip… ?
>>
>
> The piece you are missing is a WFS (like GeoServer) or something similar
> (like FeatureServer). Once you have that on the server side and your
> features in the browser, you can persist them like shown in
>
> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
>
> Regards,
> Andreas.
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> ------------------------------------------------------------------
> 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.
> ------------------------------------------------------------------
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Sent from my mobile device
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list