Hello,In my editing application I use esri:Editor. I want to do next thing:On creating new feature all attributes values except one should be added by user, the one should be added programmatically after feature created. I do not know what is the right way to added attribute value programatically.I think I should call the method after FeatureLayer editsComplete and do applyEdits to update newly created feature. I don't know the correct way to access the created feature. My part of code is below, but the method trasy_editsCompleteHandler(event) is not called:FeatureLaye definition:<esri:FeatureLayer id="trasy"
editsComplete="trasy_editsCompleteHandler(event)"
mode="snapshot"
outFields="[Miesiace, Jak_czesto, Kierunek, Ile_minut, Poczatek, Koniec]"
url="http://149.156.80.249:6080/arcgis/rest/services/daneRowerowe/trasy_miejsca_Krakow/FeatureServer/3"/>
And the code:private var username:String = "newuser";
protected function trasy_editsCompleteHandler(event:FeatureLayerEvent):void
{
const trasaUz:Object = {};
trasaUz["Uzytkownik"] = username;
var fSet:FeatureSet = new FeatureSet(event.adds);
fSet.features[0].attributes = trasaUz;
trasy.applyEdits(null, [fSet.features[0]], null);
}
Thank you,Andrzej