[OpenLayers-Users] Can't update a feature for which there is no FID (WFS-T)

Eric Lemoine eric.lemoine at camptocamp.com
Thu Feb 11 07:59:45 EST 2010


On Wednesday, February 10, 2010, paweluz <paweluz at o2.pl> wrote:
>
> Hi!
>
> Thanks for your help. I try to  use my_wfs_layer.refresh({force:true }) but
> it works this same. I am using the Openlayer.state.INSERT for adding new
> data into database. I am also using Layer.WFS, not vector. When I  try to
> use Openlayers.State.SAVE like you told me to I got an error:

I was referring to Strategy.Save.


>
> Błąd: uncaught exception: [Exception... "Could not convert JavaScript
> argument arg 0"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"
> location: "JS frame ::
> http://localhost:8080/geoserver/www/deegree/openlayers/OpenLayers.js ::
> anonymous :: line 2046"  data: no]
>
> I actually did not here about SAVE state? Or we maybe talking about two
> different thinks?? Can you help me please?

I just recommend using Layer.Vector with Protocol.WFS and
Strategy.Save. Search the examples to get more concrete information on
how to use those classes.


Cheers,


>
> Regards,
> Poul
> --
> View this message in context: http://n2.nabble.com/Can-t-update-a-feature-for-which-there-is-no-FID-WFS-T-tp4547884p4549777.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
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