[Users] Problems with toolbar and feature-grid
Eric Lemoine
eric.lemoine at camptocamp.com
Thu Dec 10 16:16:20 CET 2009
2009/12/10 Mario Nuñez Jimenez <mario.nunez at atosresearch.eu>:
> Hello,
Hi
> I am experiencing problems with the feature-grid example, this grid shows
> the feature information and it allow to edit data but I don’t knot how to
> save this data.
>
> Is there any example of how do this?
If you have a protocol object you can do protocol.commit(). This will
appropriately create, update and delete features, based on their
states.
> I think I should add a button to save
> but I don’t know if there is a way to save the edited data through the WFS-T
> service (geoserver)
>
> I managed to save the features it selves, so that means only geographical
> information and not other fields in the feature table in postgres database.
When you modify a cell in the grid the feature store should take care
of modifying the corresponding feature attribute, but maybe the
feature store doesn't set the feature state as it should. As a
workaround you can register a featuremodified listener on the layer
and have this listener set the feature's state to
OpenLayers.State.UPDATE.
> Also I am experiencing problems with the GeoExt toolbar, because the save
> button and re-center button doent’s work well.
Please share your code, this isn't enough information to be able to help you.
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list