[OpenLayers-Dev] WFS-T and fid property
adube at mapgears.com
Mon Feb 14 13:15:49 EST 2011
Don't forget to reply to the list.
Have you tried with different OpenLayers versions ? Could you
provide an online demo or small use-case showing the issue ? Reading
this first might help : http://docs.openlayers.org/help/minimize.html
On 11-02-14 12:40 PM, Denis Rykov wrote:
> I've tried debugging with firebug and discover that in onCommit method command
> var insertIds = response.insertIds || ;
> always returns array with length=1, which contains fid of inserted
> feature. At least in my case.
> On Mon, Feb 14, 2011 at 10:26 PM, Alexandre Dube<adube at mapgears.com> wrote:
>> Using Firebug, put a break point in the onCommit method of the Save
>> strategy to see what's going on. That could give you a hint. Also, have
>> you tried with different versions of OpenLayers (2.10, trunk) ?
>> Best regards,
>> On 11-02-14 11:18 AM, Denis Rykov wrote:
>>> I'm not sure this right place for my message, but Ive discovered the
>>> following problem.
>>> I'm using Openlayers and WFS-T Server - TinyOWS. When I add new
>>> features to layer and commit changes - I get answer from TinyOWS, for
>>> <?xml version='1.0' encoding='utf-8'?>
>>> <wfs:WFS_TransactionResponse version="1.0.0"
>>> <wfs:InsertResult handle="TinyOWS-WFS-default-handle"><ogc:FeatureId
>>> fid="views.157"/><ogc:FeatureId fid="views.158"/><ogc:FeatureId
>>> But only one (the first) of newly created feature of layer in
>>> OpenLayers contains fid property, another feature have fid value =
>>> null. Is this problem of OpenLayer or TinyOWS. Could anyone confirm
>>> described behavior? Now I'm using refresh() method of layer, but I
>>> guess this is not best way.
>>> Dev mailing list
>>> Dev at lists.osgeo.org
>> Alexandre Dubé
>> Dev mailing list
>> Dev at lists.osgeo.org
More information about the Dev