[Users] FeatureStore/Layer synch?
Eric Lemoine
eric.lemoine at camptocamp.com
Sat Nov 28 11:32:47 CET 2009
>
> after setting attributes try triggering a featuremodified event with:
>
> vecLayer.events.triggerEvent("featuremodified", {feature: evt.feature});
>
> this event should be caught by the feature store, which, as a result,
> will update the corresponding record's data.
Also, for the record, when you set a record's field use
"record.set("field") = value" as opposed to "record.data.field =
value". In this way Ext fires an event and Ext widgets can update the
user interface. Also if you do record.set("field") = value, the
feature store takes care of setting feature.attributes.field to value.
--
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