Maybe your feauture namespace is wrong, without the http?
url: '/geoserver/namespace/wfs',
layers : layername,
(on localhost)
Gesendet: Montag, 08. Juli 2013 um 17:31 Uhr
Von: "Pablo Pérez Diez" <pablo.fnk.fon...@gmail.com>
An: users@geoext.org
Betreff: [Users] Changing feature attributes through WFS-T
Von: "Pablo Pérez Diez" <pablo.fnk.fon...@gmail.com>
An: users@geoext.org
Betreff: [Users] Changing feature attributes through WFS-T
Hi,
I've a map generated through OpenLayers. I'm using GeoExt to generate a tree of layers loaded from Geoserver that at the same time is loaded from a PostGIS database. I've developed that when the user click over the layer in the map a popup is displayed with the feature information, then I've added a button to the popup because of the user change some value of the feature to save it in the database.However, it isn't working:
var capa = new OpenLayers.Protocol.WFS({
url: "/geoserver/ows",
version: "1.1.0",
featureType: "aicp",
featureNS: "http://OceanliderRestricciones",
srsName: "EPSG:4326"
});
capa.commit(e.features);
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</wfs:Transaction>
This is wrong because it hasn't what to do, I mean, It isn't saying what to do (update, insert, delete).
I would appreciate your help.
I would appreciate your help.
Thanks,
FNK.
FNK.
PD: I've used this tutorial: http://workshops.opengeo.org/geoext/wfs/wfst.html
It works but I don't know how to adapt it to my code.
It works but I don't know how to adapt it to my code.
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users