dojo.connect(layer,"onBeforeApplyEdits",function(adds,updates,deletes){ dojo.forEach(adds,function(add){ add.attributes.symbolid = new Date().getTime().toString(); }); });
var ft0 = new esri.layers.FeatureLayer("http://172.16.25.71/ArcGIS/rest/services/necma_wod2/FeatureServer/0",{ mode: esri.layers.FeatureLayer.MODE_ONDEMAND, outFields: ['*'] }); dojo.connect(ft0, "onBeforeApplyEdits", addAttributeValues); . . . function addAttributeValues (adds, updates, deletes){ for (i in adds){ adds.setAttributes({"ARID":arid,}); adds.visible = true; adds.show(); //alert(adds.getContent()); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.