Hello,I am trying to update an existing feature using the following peace of code:
var selectedTourSection = layerUtilProvider.getSelectedFeatures();
if (selectedTourSection.length > 0) {
selectedTourSection[0].attributes.STATUS = 1;
selectedOperationalLayer.applyEdits(null, [selectedTourSection[0]], null,
function () {
isTourSectionSelected = true;
},
function (error) {
console.log(error);
});
My feature "selectedTourSection" has a valid geometry assigned to it (checked using Firebug). The "applyEdits" functions even returns with success (response taken from Firebug):[HTML]addResults[] updateResults[Object { objectId=2, success=true}] ... deleteResults[][/HTML] but nevertheless the following error appears in the Firebug console:[HTML]TypeError: _178.geometry is null[/HTML]I have no idea what is actually causing this problem. I would be thankful if anyone could shed some light on this issue. Thank you very much in advance.Thomas