protected function addClonedLayers(): void { var l:int; var i:int; var clonedFeatures:Array; var thisGraphic:Graphic; for (l=0; l < cloneLayers.length; l++) { if (cloneLayers.clonedLayer.features.length > 0) { clonedFeatures=[]; for (i=0; i < cloneLayers.clonedLayer.features.length; i++) { thisGraphic=new Graphic(); thisGraphic=cloneLayers.clonedLayer.features; thisGraphic.attributes.themeID=themeID; thisGraphic.attributes.caseID=caseID; // NULL out existing objectID ?? thisGraphic.attributes.OBJECTID=null; clonedFeatures.push(thisGraphic); } ippLayers[cloneLayers.id].applyEdits(clonedFeatures,null,null,true); } } utils.informUser("Cloning complete.","Clone case"); }
Solved! Go to Solution.